Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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. | |
| 4 | |
| 5 #ifndef CC_TEST_EMPTY_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ | |
| 6 #define CC_TEST_EMPTY_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ | |
| 7 | |
| 8 #include "cc/surfaces/compositor_frame_sink_support_client.h" | |
| 9 #include "cc/surfaces/local_surface_id.h" | |
| 10 #include "ui/gfx/geometry/rect.h" | |
| 11 | |
| 12 namespace cc { | |
| 13 | |
| 14 class EmptyCompositorFrameSinkSupportClient | |
| 15 : public CompositorFrameSinkSupportClient { | |
| 16 public: | |
| 17 EmptyCompositorFrameSinkSupportClient(); | |
| 18 ~EmptyCompositorFrameSinkSupportClient() override; | |
| 19 | |
| 20 const gfx::Rect& last_damage_rect() const { return last_damage_rect_; } | |
| 21 const LocalSurfaceId& last_local_surface_id() const { | |
| 22 return last_local_surface_id_; | |
| 23 } | |
| 24 const ReturnedResourceArray& returned_resources() const { | |
| 25 return returned_resources_; | |
| 26 } | |
| 27 | |
| 28 private: | |
| 29 // CompositorFrameSinkSupportClient implementation. | |
|
Fady Samuel
2017/04/05 21:32:42
cc/ OWNERS prefer to keep this public.
Alex Z.
2017/04/06 00:04:03
Done.
| |
| 30 void DidReceiveCompositorFrameAck() override; | |
| 31 void OnBeginFrame(const BeginFrameArgs& args) override; | |
| 32 void ReclaimResources(const ReturnedResourceArray& resources) override; | |
| 33 void WillDrawSurface(const LocalSurfaceId& local_surface_id, | |
| 34 const gfx::Rect& damage_rect) override; | |
| 35 | |
| 36 // Member variables used by SurfaceAggregatorTest. | |
|
Fady Samuel
2017/04/05 21:32:42
This will go stale very quickly. Delete this?
Alex Z.
2017/04/06 00:04:03
Done.
| |
| 37 gfx::Rect last_damage_rect_; | |
| 38 LocalSurfaceId last_local_surface_id_; | |
| 39 ReturnedResourceArray returned_resources_; | |
|
Fady Samuel
2017/04/05 21:32:42
DISALLOW_COPY_AND_ASSIGN(EmptyCompositorFrameSinkS
Alex Z.
2017/04/06 00:04:03
Done.
| |
| 40 }; | |
| 41 | |
| 42 } // namespace cc | |
| 43 | |
| 44 #endif // CC_TEST_EMPTY_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ | |
| OLD | NEW |