OLD | NEW |
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 |
OLD | NEW |