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

Side by Side Diff: cc/test/test_delegating_output_surface.cc

Issue 2321883002: cc: Remove SetMemoryPolicy from OutputSurface and Display. (Closed)
Patch Set: nits 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/test_delegating_output_surface.h ('k') | cc/trees/layer_tree_host_impl.h » ('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 #include "cc/test/test_delegating_output_surface.h" 5 #include "cc/test/test_delegating_output_surface.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "cc/output/begin_frame_args.h" 10 #include "cc/output/begin_frame_args.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 void TestDelegatingOutputSurface::SetBeginFrameSource( 191 void TestDelegatingOutputSurface::SetBeginFrameSource(
192 BeginFrameSource* begin_frame_source) { 192 BeginFrameSource* begin_frame_source) {
193 client_->SetBeginFrameSource(begin_frame_source); 193 client_->SetBeginFrameSource(begin_frame_source);
194 } 194 }
195 195
196 void TestDelegatingOutputSurface::DisplayOutputSurfaceLost() { 196 void TestDelegatingOutputSurface::DisplayOutputSurfaceLost() {
197 DidLoseOutputSurface(); 197 DidLoseOutputSurface();
198 } 198 }
199 199
200 void TestDelegatingOutputSurface::DisplaySetMemoryPolicy(
201 const ManagedMemoryPolicy& policy) {
202 SetMemoryPolicy(policy);
203 }
204
205 void TestDelegatingOutputSurface::DisplayWillDrawAndSwap( 200 void TestDelegatingOutputSurface::DisplayWillDrawAndSwap(
206 bool will_draw_and_swap, 201 bool will_draw_and_swap,
207 const RenderPassList& render_passes) { 202 const RenderPassList& render_passes) {
208 if (test_client_) 203 if (test_client_)
209 test_client_->DisplayWillDrawAndSwap(will_draw_and_swap, render_passes); 204 test_client_->DisplayWillDrawAndSwap(will_draw_and_swap, render_passes);
210 } 205 }
211 206
212 void TestDelegatingOutputSurface::DisplayDidDrawAndSwap() { 207 void TestDelegatingOutputSurface::DisplayDidDrawAndSwap() {
213 if (test_client_) 208 if (test_client_)
214 test_client_->DisplayDidDrawAndSwap(); 209 test_client_->DisplayDidDrawAndSwap();
215 } 210 }
216 211
217 } // namespace cc 212 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_delegating_output_surface.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698