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_TEST_TEST_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef CC_TEST_TEST_COMPOSITOR_FRAME_SINK_H_ |
6 #define CC_TEST_TEST_COMPOSITOR_FRAME_SINK_H_ | 6 #define CC_TEST_TEST_COMPOSITOR_FRAME_SINK_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "cc/output/compositor_frame_sink.h" | 10 #include "cc/output/compositor_frame_sink.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 Display* display() const { return display_.get(); } | 72 Display* display() const { return display_.get(); } |
73 | 73 |
74 // Will be included with the next SubmitCompositorFrame. | 74 // Will be included with the next SubmitCompositorFrame. |
75 void RequestCopyOfOutput(std::unique_ptr<CopyOutputRequest> request); | 75 void RequestCopyOfOutput(std::unique_ptr<CopyOutputRequest> request); |
76 | 76 |
77 // CompositorFrameSink implementation. | 77 // CompositorFrameSink implementation. |
78 bool BindToClient(CompositorFrameSinkClient* client) override; | 78 bool BindToClient(CompositorFrameSinkClient* client) override; |
79 void DetachFromClient() override; | 79 void DetachFromClient() override; |
80 void SetLocalSurfaceId(const LocalSurfaceId& local_surface_id) override; | 80 void SetLocalSurfaceId(const LocalSurfaceId& local_surface_id) override; |
81 void SubmitCompositorFrame(CompositorFrame frame) override; | 81 void SubmitCompositorFrame(CompositorFrame frame) override; |
| 82 void BeginFrameDidNotProduceFrame(const BeginFrameAck& ack) override; |
82 | 83 |
83 // CompositorFrameSinkSupportClient implementation. | 84 // CompositorFrameSinkSupportClient implementation. |
84 void DidReceiveCompositorFrameAck( | 85 void DidReceiveCompositorFrameAck( |
85 const ReturnedResourceArray& resources) override; | 86 const ReturnedResourceArray& resources) override; |
86 void OnBeginFrame(const BeginFrameArgs& args) override; | 87 void OnBeginFrame(const BeginFrameArgs& args) override; |
87 void ReclaimResources(const ReturnedResourceArray& resources) override; | 88 void ReclaimResources(const ReturnedResourceArray& resources) override; |
88 void WillDrawSurface(const LocalSurfaceId& local_surface_id, | 89 void WillDrawSurface(const LocalSurfaceId& local_surface_id, |
89 const gfx::Rect& damage_rect) override; | 90 const gfx::Rect& damage_rect) override; |
90 | 91 |
91 // DisplayClient implementation. | 92 // DisplayClient implementation. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 gfx::Size enlarge_pass_texture_amount_; | 128 gfx::Size enlarge_pass_texture_amount_; |
128 | 129 |
129 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_; | 130 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_; |
130 | 131 |
131 base::WeakPtrFactory<TestCompositorFrameSink> weak_ptr_factory_; | 132 base::WeakPtrFactory<TestCompositorFrameSink> weak_ptr_factory_; |
132 }; | 133 }; |
133 | 134 |
134 } // namespace cc | 135 } // namespace cc |
135 | 136 |
136 #endif // CC_TEST_TEST_COMPOSITOR_FRAME_SINK_H_ | 137 #endif // CC_TEST_TEST_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |