blob: dbca28cdf25f809a764a670f06edf4d1c311132a [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
namespace cc {
class LayerTreeHostSingleThreadClient {
// Request that the client schedule a composite.
virtual void ScheduleComposite() {}
// Request that the client schedule a composite now, and calculate appropriate
// delay for potential future frame.
virtual void ScheduleAnimation() {}
// Called whenever the compositor posts a SwapBuffers (either full or
// partial). After DidPostSwapBuffers(), exactly one of
// DidCompleteSwapBuffers() or DidAbortSwapBuffers() will be called, thus
// these functions can be used to keep track of pending swap buffers calls for
// rate limiting.
virtual void DidPostSwapBuffers() = 0;
virtual void DidCompleteSwapBuffers() = 0;
virtual void DidAbortSwapBuffers() = 0;
virtual ~LayerTreeHostSingleThreadClient() {}
} // namespace cc