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

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

Issue 2802023002: Remove SurfaceFactory And SurfaceFactoryClient (Closed)
Patch Set: Change Ref/UnrefResources to public Created 3 years, 7 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698