| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |