| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ | 5 #ifndef CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ |
| 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ | 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ |
| 7 | 7 |
| 8 #include "cc/resources/returned_resource.h" | 8 #include "cc/resources/returned_resource.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Notification for the client to generate a CompositorFrame. | 31 // Notification for the client to generate a CompositorFrame. |
| 32 virtual void OnBeginFrame(const BeginFrameArgs& args) = 0; | 32 virtual void OnBeginFrame(const BeginFrameArgs& args) = 0; |
| 33 | 33 |
| 34 // Returns resources sent to SubmitCompositorFrame to be reused or freed. | 34 // Returns resources sent to SubmitCompositorFrame to be reused or freed. |
| 35 virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0; | 35 virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0; |
| 36 | 36 |
| 37 // Called when surface is being scheduled for a draw. | 37 // Called when surface is being scheduled for a draw. |
| 38 virtual void WillDrawSurface(const LocalSurfaceId& local_surface_id, | 38 virtual void WillDrawSurface(const LocalSurfaceId& local_surface_id, |
| 39 const gfx::Rect& damage_rect) = 0; | 39 const gfx::Rect& damage_rect) = 0; |
| 40 | 40 |
| 41 virtual void OnBadFrameReceived() {} |
| 42 |
| 41 protected: | 43 protected: |
| 42 virtual ~CompositorFrameSinkSupportClient() {} | 44 virtual ~CompositorFrameSinkSupportClient() {} |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 } // namespace cc | 47 } // namespace cc |
| 46 | 48 |
| 47 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ | 49 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ |
| OLD | NEW |