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

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

Issue 1910213005: cc: Refactor TileTaskWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@task_states
Patch Set: feedback Created 4 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
« no previous file with comments | « cc/test/test_hooks.h ('k') | cc/tiles/tile_manager.h » ('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 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
OLDNEW
« no previous file with comments | « cc/test/test_hooks.h ('k') | cc/tiles/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698