Add signalSyncPoint to the WebGraphicsContext3D command buffer impls.
[chromium-blink-merge.git] / cc / output / output_surface_client.h
blob32dec38ff879774fa9367e33e6e3b1cc181de526
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
8 #include "base/time.h"
9 #include "cc/base/cc_export.h"
10 #include "ui/gfx/rect.h"
12 namespace cc {
14 class CompositorFrameAck;
16 class CC_EXPORT OutputSurfaceClient {
17 public:
18 virtual void SetNeedsRedrawRect(gfx::Rect damage_rect) = 0;
19 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
20 base::TimeDelta interval) = 0;
21 virtual void DidVSync(base::TimeTicks frame_time) = 0;
22 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck&) = 0;
23 virtual void OnSwapBuffersComplete() = 0;
24 virtual void DidLoseOutputSurface() = 0;
26 protected:
27 virtual ~OutputSurfaceClient() {}
30 } // namespace cc
32 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_