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_
9 #include "cc/base/cc_export.h"
10 #include "ui/gfx/rect.h"
14 class CompositorFrameAck
;
16 class CC_EXPORT OutputSurfaceClient
{
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;
27 virtual ~OutputSurfaceClient() {}
32 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_