OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/test_hooks.h" | 5 #include "cc/test/test_hooks.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 | 8 |
9 TestHooks::TestHooks() {} | 9 TestHooks::TestHooks() {} |
10 | 10 |
11 TestHooks::~TestHooks() {} | 11 TestHooks::~TestHooks() {} |
12 | 12 |
13 DrawResult TestHooks::PrepareToDrawOnThread( | 13 DrawResult TestHooks::PrepareToDrawOnThread( |
14 LayerTreeHostImpl* host_impl, | 14 LayerTreeHostImpl* host_impl, |
15 LayerTreeHostImpl::FrameData* frame_data, | 15 LayerTreeHostImpl::FrameData* frame_data, |
16 DrawResult draw_result) { | 16 DrawResult draw_result) { |
17 return draw_result; | 17 return draw_result; |
18 } | 18 } |
19 | 19 |
20 void TestHooks::CreateResourceAndTileTaskWorkerPool( | 20 void TestHooks::CreateResourceAndRasterBufferProvider( |
21 LayerTreeHostImpl* host_impl, | 21 LayerTreeHostImpl* host_impl, |
22 std::unique_ptr<TileTaskWorkerPool>* tile_task_worker_pool, | 22 std::unique_ptr<RasterBufferProvider>* raster_buffer_provider, |
23 std::unique_ptr<ResourcePool>* resource_pool) { | 23 std::unique_ptr<ResourcePool>* resource_pool) { |
24 host_impl->LayerTreeHostImpl::CreateResourceAndTileTaskWorkerPool( | 24 host_impl->LayerTreeHostImpl::CreateResourceAndRasterBufferProvider( |
25 tile_task_worker_pool, resource_pool); | 25 raster_buffer_provider, resource_pool); |
26 } | 26 } |
27 | 27 |
28 } // namespace cc | 28 } // namespace cc |
OLD | NEW |