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

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

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/fake_layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/fake_layer_tree_host_client.h" 5 #include "cc/test/fake_layer_tree_host_client.h"
6 6
7 #include "cc/test/fake_output_surface.h" 7 #include "cc/test/fake_compositor_frame_sink.h"
8 #include "cc/trees/layer_tree_host.h" 8 #include "cc/trees/layer_tree_host.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 FakeLayerTreeHostClient::FakeLayerTreeHostClient() = default; 12 FakeLayerTreeHostClient::FakeLayerTreeHostClient() = default;
13 FakeLayerTreeHostClient::~FakeLayerTreeHostClient() = default; 13 FakeLayerTreeHostClient::~FakeLayerTreeHostClient() = default;
14 14
15 void FakeLayerTreeHostClient::RequestNewOutputSurface() { 15 void FakeLayerTreeHostClient::RequestNewCompositorFrameSink() {
16 DCHECK(host_); 16 DCHECK(host_);
17 host_->SetOutputSurface(FakeOutputSurface::CreateDelegating3d()); 17 host_->SetCompositorFrameSink(FakeCompositorFrameSink::Create3d());
18 } 18 }
19 19
20 void FakeLayerTreeHostClient::DidFailToInitializeOutputSurface() { 20 void FakeLayerTreeHostClient::DidFailToInitializeCompositorFrameSink() {
21 RequestNewOutputSurface(); 21 RequestNewCompositorFrameSink();
22 } 22 }
23 23
24 } // namespace cc 24 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/fake_layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698