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

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

Issue 2349743004: cc: Remove things from OutputSurface and CompositorFrameSink. (Closed)
Patch Set: delete-stuff-cfs: comment-and-rebase Created 4 years, 3 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/pixel_test_output_surface.cc ('k') | cc/test/test_compositor_frame_sink.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_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
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
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_
OLDNEW
« no previous file with comments | « cc/test/pixel_test_output_surface.cc ('k') | cc/test/test_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698