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/mock_compositor_frame_sink_support_client.h" |
| 6 |
| 7 namespace cc { |
| 8 namespace test { |
| 9 |
| 10 MockCompositorFrameSinkSupportClient::MockCompositorFrameSinkSupportClient( |
| 11 bool create_surface_during_eviction) { |
| 12 ON_CALL(*this, ReclaimResources(_)) |
| 13 .WillByDefault(Invoke( |
| 14 this, |
| 15 &MockCompositorFrameSinkSupportClient::ReclaimResourcesInternal)); |
| 16 ON_CALL(*this, DidReceiveCompositorFrameAck(_)) |
| 17 .WillByDefault(Invoke( |
| 18 this, |
| 19 create_surface_during_eviction |
| 20 ? &MockCompositorFrameSinkSupportClient::CreateSurfaceDrawCallback |
| 21 : &MockCompositorFrameSinkSupportClient:: |
| 22 ReclaimResourcesInternal)); |
| 23 } |
| 24 |
| 25 MockCompositorFrameSinkSupportClient::~MockCompositorFrameSinkSupportClient() = |
| 26 default; |
| 27 } // namespace test |
| 28 } // namespace cc |
OLD | NEW |