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

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

Issue 2329623003: cc: Remove unneeded methods from OutputSurface. (Closed)
Patch Set: superandroid 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
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 const ReturnedResourceArray& resources) { 187 const ReturnedResourceArray& resources) {
188 client_->ReclaimResources(resources); 188 client_->ReclaimResources(resources);
189 } 189 }
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 client_->DidLoseOutputSurface();
198 } 198 }
199 199
200 void TestDelegatingOutputSurface::DisplayWillDrawAndSwap( 200 void TestDelegatingOutputSurface::DisplayWillDrawAndSwap(
201 bool will_draw_and_swap, 201 bool will_draw_and_swap,
202 const RenderPassList& render_passes) { 202 const RenderPassList& render_passes) {
203 if (test_client_) 203 if (test_client_)
204 test_client_->DisplayWillDrawAndSwap(will_draw_and_swap, render_passes); 204 test_client_->DisplayWillDrawAndSwap(will_draw_and_swap, render_passes);
205 } 205 }
206 206
207 void TestDelegatingOutputSurface::DisplayDidDrawAndSwap() { 207 void TestDelegatingOutputSurface::DisplayDidDrawAndSwap() {
208 if (test_client_) 208 if (test_client_)
209 test_client_->DisplayDidDrawAndSwap(); 209 test_client_->DisplayDidDrawAndSwap();
210 } 210 }
211 211
212 } // namespace cc 212 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/surface_display_output_surface.cc ('k') | content/renderer/android/synchronous_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698