Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: cc/test/pixel_test_delegating_output_surface.h

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/pixel_test_delegating_output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/pixel_test_delegating_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698