| 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 16 matching lines...) Expand all  Loading... | 
| 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; | 
|  | 38   uint32_t GetFramebufferCopyTextureFormat() override; | 
| 37 | 39 | 
| 38   // SurfaceFactoryClient implementation. | 40   // SurfaceFactoryClient implementation. | 
| 39   void ReturnResources(const ReturnedResourceArray& resources) override; | 41   void ReturnResources(const ReturnedResourceArray& resources) override; | 
| 40   void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; | 42   void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; | 
| 41 | 43 | 
| 42   // 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 | 
| 43   // 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 | 
| 44   // render pass. This should be called before the output surface is bound. | 46   // render pass. This should be called before the output surface is bound. | 
| 45   void SetEnlargePassTextureAmount(const gfx::Size& amount); | 47   void SetEnlargePassTextureAmount(const gfx::Size& amount); | 
| 46 | 48 | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
| 71   PixelTestDisplayClient display_client_; | 73   PixelTestDisplayClient display_client_; | 
| 72   // Uses surface_manager_. | 74   // Uses surface_manager_. | 
| 73   std::unique_ptr<Display> display_; | 75   std::unique_ptr<Display> display_; | 
| 74 | 76 | 
| 75   base::WeakPtrFactory<PixelTestDelegatingOutputSurface> weak_ptrs_; | 77   base::WeakPtrFactory<PixelTestDelegatingOutputSurface> weak_ptrs_; | 
| 76 }; | 78 }; | 
| 77 | 79 | 
| 78 }  // namespace cc | 80 }  // namespace cc | 
| 79 | 81 | 
| 80 #endif  // CC_TEST_PIXEL_TEST_DELEGATING_OUTPUT_SURFACE_H_ | 82 #endif  // CC_TEST_PIXEL_TEST_DELEGATING_OUTPUT_SURFACE_H_ | 
| OLD | NEW | 
|---|