Chromium Code Reviews| 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) { | |
|
danakj
2017/05/03 16:08:40
this is never true right? remove it?
Alex Z.
2017/05/03 18:07:37
It is true in CompositorFrameSinkSupportTest.AddDu
danakj
2017/05/05 16:04:19
I see. Can you move the ON_CALL stuff to that test
| |
| 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 | |
|
danakj
2017/05/03 16:08:39
whitespace above this
Alex Z.
2017/05/03 18:07:37
Done.
| |
| 28 } // namespace cc | |
| OLD | NEW |