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/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "cc/output/compositor_frame_sink.h" | 9 #include "cc/output/compositor_frame_sink.h" |
10 #include "cc/output/renderer_settings.h" | 10 #include "cc/output/renderer_settings.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 Display* display() const { return display_.get(); } | 59 Display* display() const { return display_.get(); } |
60 | 60 |
61 // Will be submitted with the next SwapBuffers. | 61 // Will be submitted with the next SwapBuffers. |
62 void RequestCopyOfOutput(std::unique_ptr<CopyOutputRequest> request); | 62 void RequestCopyOfOutput(std::unique_ptr<CopyOutputRequest> request); |
63 | 63 |
64 // CompositorFrameSink implementation. | 64 // CompositorFrameSink implementation. |
65 bool BindToClient(CompositorFrameSinkClient* client) override; | 65 bool BindToClient(CompositorFrameSinkClient* client) override; |
66 void DetachFromClient() override; | 66 void DetachFromClient() override; |
67 void SwapBuffers(CompositorFrame frame) override; | 67 void SwapBuffers(CompositorFrame frame) override; |
68 void ForceReclaimResources() override; | 68 void ForceReclaimResources() override; |
69 void BindFramebuffer() override; | |
70 uint32_t GetFramebufferCopyTextureFormat() override; | |
71 | 69 |
72 // SurfaceFactoryClient implementation. | 70 // SurfaceFactoryClient implementation. |
73 void ReturnResources(const ReturnedResourceArray& resources) override; | 71 void ReturnResources(const ReturnedResourceArray& resources) override; |
74 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; | 72 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; |
75 | 73 |
76 // DisplayClient implementation. | 74 // DisplayClient implementation. |
77 void DisplayOutputSurfaceLost() override; | 75 void DisplayOutputSurfaceLost() override; |
78 void DisplayWillDrawAndSwap(bool will_draw_and_swap, | 76 void DisplayWillDrawAndSwap(bool will_draw_and_swap, |
79 const RenderPassList& render_passes) override; | 77 const RenderPassList& render_passes) override; |
80 void DisplayDidDrawAndSwap() override; | 78 void DisplayDidDrawAndSwap() override; |
(...skipping 18 matching lines...) Expand all Loading... |
99 gfx::Size enlarge_pass_texture_amount_; | 97 gfx::Size enlarge_pass_texture_amount_; |
100 | 98 |
101 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_; | 99 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_; |
102 | 100 |
103 base::WeakPtrFactory<TestCompositorFrameSink> weak_ptrs_; | 101 base::WeakPtrFactory<TestCompositorFrameSink> weak_ptrs_; |
104 }; | 102 }; |
105 | 103 |
106 } // namespace cc | 104 } // namespace cc |
107 | 105 |
108 #endif // CC_TEST_TEST_COMPOSITOR_FRAME_SINK_H_ | 106 #endif // CC_TEST_TEST_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |