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_PIXEL_TEST_DELEGATING_OUTPUT_SURFACE_H_ | 5 #ifndef CC_TEST_PIXEL_TEST_DELEGATING_OUTPUT_SURFACE_H_ |
6 #define CC_TEST_PIXEL_TEST_DELEGATING_OUTPUT_SURFACE_H_ | 6 #define CC_TEST_PIXEL_TEST_DELEGATING_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "cc/output/output_surface.h" | 9 #include "cc/output/output_surface.h" |
10 #include "cc/scheduler/begin_frame_source.h" | 10 #include "cc/scheduler/begin_frame_source.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 scoped_refptr<ContextProvider> worker_context_provider, | 25 scoped_refptr<ContextProvider> worker_context_provider, |
26 SharedBitmapManager* shared_bitmap_manager, | 26 SharedBitmapManager* shared_bitmap_manager, |
27 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 27 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
28 bool allow_force_reclaim_resources, | 28 bool allow_force_reclaim_resources, |
29 bool synchronous_composite); | 29 bool synchronous_composite); |
30 ~PixelTestDelegatingOutputSurface() override; | 30 ~PixelTestDelegatingOutputSurface() override; |
31 | 31 |
32 // OutputSurface implementation. | 32 // OutputSurface implementation. |
33 bool BindToClient(OutputSurfaceClient* client) override; | 33 bool BindToClient(OutputSurfaceClient* client) override; |
34 void DetachFromClient() override; | 34 void DetachFromClient() override; |
35 void SwapBuffers(CompositorFrame* frame) override; | 35 void SwapBuffers(CompositorFrame frame) override; |
36 void ForceReclaimResources() override; | 36 void ForceReclaimResources() override; |
37 void BindFramebuffer() override; | 37 void BindFramebuffer() override; |
38 uint32_t GetFramebufferCopyTextureFormat() override; | 38 uint32_t GetFramebufferCopyTextureFormat() override; |
39 | 39 |
40 // SurfaceFactoryClient implementation. | 40 // SurfaceFactoryClient implementation. |
41 void ReturnResources(const ReturnedResourceArray& resources) override; | 41 void ReturnResources(const ReturnedResourceArray& resources) override; |
42 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; | 42 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; |
43 | 43 |
44 // Allow tests to enlarge the backing texture for a non-root render pass, to | 44 // Allow tests to enlarge the backing texture for a non-root render pass, to |
45 // simulate reusing a larger texture from a previous frame for a new | 45 // simulate reusing a larger texture from a previous frame for a new |
(...skipping 27 matching lines...) Expand all Loading... |
73 PixelTestDisplayClient display_client_; | 73 PixelTestDisplayClient display_client_; |
74 // Uses surface_manager_. | 74 // Uses surface_manager_. |
75 std::unique_ptr<Display> display_; | 75 std::unique_ptr<Display> display_; |
76 | 76 |
77 base::WeakPtrFactory<PixelTestDelegatingOutputSurface> weak_ptrs_; | 77 base::WeakPtrFactory<PixelTestDelegatingOutputSurface> weak_ptrs_; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace cc | 80 } // namespace cc |
81 | 81 |
82 #endif // CC_TEST_PIXEL_TEST_DELEGATING_OUTPUT_SURFACE_H_ | 82 #endif // CC_TEST_PIXEL_TEST_DELEGATING_OUTPUT_SURFACE_H_ |
OLD | NEW |