| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "cc/test/fake_compositor_frame_sink_support_client.h" |
| 6 |
| 7 #include "cc/surfaces/surface_manager.h" |
| 8 |
| 9 namespace cc { |
| 10 |
| 11 FakeCompositorFrameSinkSupportClient::FakeCompositorFrameSinkSupportClient() = |
| 12 default; |
| 13 FakeCompositorFrameSinkSupportClient::~FakeCompositorFrameSinkSupportClient() = |
| 14 default; |
| 15 |
| 16 void FakeCompositorFrameSinkSupportClient::DidReceiveCompositorFrameAck( |
| 17 const ReturnedResourceArray& resources) { |
| 18 returned_resources_ = resources; |
| 19 } |
| 20 |
| 21 void FakeCompositorFrameSinkSupportClient::OnBeginFrame( |
| 22 const BeginFrameArgs& args) {} |
| 23 |
| 24 void FakeCompositorFrameSinkSupportClient::ReclaimResources( |
| 25 const ReturnedResourceArray& resources) { |
| 26 returned_resources_ = resources; |
| 27 } |
| 28 |
| 29 void FakeCompositorFrameSinkSupportClient::WillDrawSurface( |
| 30 const LocalSurfaceId& local_surface_id, |
| 31 const gfx::Rect& damage_rect) { |
| 32 last_local_surface_id_ = local_surface_id; |
| 33 last_damage_rect_ = damage_rect; |
| 34 } |
| 35 |
| 36 }; // namespace cc |
| OLD | NEW |