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

Unified Diff: cc/test/layer_tree_pixel_resource_test.h

Issue 1910213005: cc: Refactor TileTaskWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@task_states
Patch Set: feedback Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_tile_task_manager.cc ('k') | cc/test/layer_tree_pixel_resource_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_pixel_resource_test.h
diff --git a/cc/test/layer_tree_pixel_resource_test.h b/cc/test/layer_tree_pixel_resource_test.h
index effa9e0dbb8e4ebbc267088a6c499c5a4dc40734..54339a2589a6b5b445c7470bc40bbae8f243b8ef 100644
--- a/cc/test/layer_tree_pixel_resource_test.h
+++ b/cc/test/layer_tree_pixel_resource_test.h
@@ -11,7 +11,7 @@
namespace cc {
class LayerTreeHostImpl;
-class TileTaskWorkerPool;
+class RasterBufferProvider;
class ResourcePool;
// Enumerate the various combinations of renderer, resource pool, staging
@@ -34,24 +34,24 @@ class LayerTreeHostPixelResourceTest : public LayerTreePixelTest {
explicit LayerTreeHostPixelResourceTest(PixelResourceTestCase test_case);
LayerTreeHostPixelResourceTest();
- void CreateResourceAndTileTaskWorkerPool(
+ void CreateResourceAndRasterBufferProvider(
LayerTreeHostImpl* host_impl,
- std::unique_ptr<TileTaskWorkerPool>* tile_task_worker_pool,
+ std::unique_ptr<RasterBufferProvider>* raster_buffer_provider,
std::unique_ptr<ResourcePool>* resource_pool) override;
void RunPixelResourceTest(scoped_refptr<Layer> content_root,
base::FilePath file_name);
- enum TileTaskWorkerPoolOption {
- BITMAP_TILE_TASK_WORKER_POOL,
- GPU_TILE_TASK_WORKER_POOL,
- ZERO_COPY_TILE_TASK_WORKER_POOL,
- ONE_COPY_TILE_TASK_WORKER_POOL
+ enum RasterBufferProviderType {
+ RASTER_BUFFER_PROVIDER_TYPE_ZERO_COPY,
+ RASTER_BUFFER_PROVIDER_TYPE_ONE_COPY,
+ RASTER_BUFFER_PROVIDER_TYPE_GPU,
+ RASTER_BUFFER_PROVIDER_TYPE_BITMAP
};
protected:
unsigned draw_texture_target_;
- TileTaskWorkerPoolOption resource_pool_option_;
+ RasterBufferProviderType raster_buffer_provider_type_;
bool initialized_;
void InitializeFromTestCase(PixelResourceTestCase test_case);
« no previous file with comments | « cc/test/fake_tile_task_manager.cc ('k') | cc/test/layer_tree_pixel_resource_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698