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

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

Issue 2720803002: Pass returned resources to DidReceiveCompositorFrameAck (Closed)
Patch Set: c Created 3 years, 8 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
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/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "cc/output/compositor_frame_sink.h" 10 #include "cc/output/compositor_frame_sink.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void RequestCopyOfOutput(std::unique_ptr<CopyOutputRequest> request); 75 void RequestCopyOfOutput(std::unique_ptr<CopyOutputRequest> request);
76 76
77 // CompositorFrameSink implementation. 77 // CompositorFrameSink implementation.
78 bool BindToClient(CompositorFrameSinkClient* client) override; 78 bool BindToClient(CompositorFrameSinkClient* client) override;
79 void DetachFromClient() override; 79 void DetachFromClient() override;
80 void SetLocalSurfaceId(const LocalSurfaceId& local_surface_id) override; 80 void SetLocalSurfaceId(const LocalSurfaceId& local_surface_id) override;
81 void SubmitCompositorFrame(CompositorFrame frame) override; 81 void SubmitCompositorFrame(CompositorFrame frame) override;
82 void ForceReclaimResources() override; 82 void ForceReclaimResources() override;
83 83
84 // CompositorFrameSinkSupportClient implementation. 84 // CompositorFrameSinkSupportClient implementation.
85 void DidReceiveCompositorFrameAck() override; 85 void DidReceiveCompositorFrameAck(
86 const ReturnedResourceArray& resources) override;
86 void OnBeginFrame(const BeginFrameArgs& args) override; 87 void OnBeginFrame(const BeginFrameArgs& args) override;
87 void ReclaimResources(const ReturnedResourceArray& resources) override; 88 void ReclaimResources(const ReturnedResourceArray& resources) override;
88 void WillDrawSurface(const LocalSurfaceId& local_surface_id, 89 void WillDrawSurface(const LocalSurfaceId& local_surface_id,
89 const gfx::Rect& damage_rect) override; 90 const gfx::Rect& damage_rect) override;
90 91
91 // DisplayClient implementation. 92 // DisplayClient implementation.
92 void DisplayOutputSurfaceLost() override; 93 void DisplayOutputSurfaceLost() override;
93 void DisplayWillDrawAndSwap(bool will_draw_and_swap, 94 void DisplayWillDrawAndSwap(bool will_draw_and_swap,
94 const RenderPassList& render_passes) override; 95 const RenderPassList& render_passes) override;
95 void DisplayDidDrawAndSwap() override; 96 void DisplayDidDrawAndSwap() override;
(...skipping 30 matching lines...) Expand all
126 gfx::Size enlarge_pass_texture_amount_; 127 gfx::Size enlarge_pass_texture_amount_;
127 128
128 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_; 129 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_;
129 130
130 base::WeakPtrFactory<TestCompositorFrameSink> weak_ptr_factory_; 131 base::WeakPtrFactory<TestCompositorFrameSink> weak_ptr_factory_;
131 }; 132 };
132 133
133 } // namespace cc 134 } // namespace cc
134 135
135 #endif // CC_TEST_TEST_COMPOSITOR_FRAME_SINK_H_ 136 #endif // CC_TEST_TEST_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698