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

Side by Side Diff: cc/test/layer_tree_pixel_resource_test.h

Issue 860813002: Remove the default format from ResourcePool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_TEST_LAYER_TREE_PIXEL_RESOURCE_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_PIXEL_RESOURCE_TEST_H_
6 #define CC_TEST_LAYER_TREE_PIXEL_RESOURCE_TEST_H_ 6 #define CC_TEST_LAYER_TREE_PIXEL_RESOURCE_TEST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "cc/test/layer_tree_pixel_test.h" 9 #include "cc/test/layer_tree_pixel_test.h"
10 10
(...skipping 19 matching lines...) Expand all
30 GL_ASYNC_UPLOAD_2D_DRAW, 30 GL_ASYNC_UPLOAD_2D_DRAW,
31 }; 31 };
32 32
33 class LayerTreeHostPixelResourceTest : public LayerTreePixelTest { 33 class LayerTreeHostPixelResourceTest : public LayerTreePixelTest {
34 public: 34 public:
35 explicit LayerTreeHostPixelResourceTest(PixelResourceTestCase test_case); 35 explicit LayerTreeHostPixelResourceTest(PixelResourceTestCase test_case);
36 LayerTreeHostPixelResourceTest(); 36 LayerTreeHostPixelResourceTest();
37 37
38 scoped_ptr<Rasterizer> CreateRasterizer( 38 scoped_ptr<Rasterizer> CreateRasterizer(
39 LayerTreeHostImpl* host_impl) override; 39 LayerTreeHostImpl* host_impl) override;
40 void CreateResourceAndTileTaskWorkerPool( 40 ResourceFormat CreateResourceAndTileTaskWorkerPool(
41 LayerTreeHostImpl* host_impl, 41 LayerTreeHostImpl* host_impl,
42 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, 42 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool,
43 scoped_ptr<ResourcePool>* resource_pool, 43 scoped_ptr<ResourcePool>* resource_pool,
44 scoped_ptr<ResourcePool>* staging_resource_pool) override; 44 scoped_ptr<ResourcePool>* staging_resource_pool) override;
45 45
46 void RunPixelResourceTest(scoped_refptr<Layer> content_root, 46 void RunPixelResourceTest(scoped_refptr<Layer> content_root,
47 base::FilePath file_name); 47 base::FilePath file_name);
48 48
49 enum TileTaskWorkerPoolOption { 49 enum TileTaskWorkerPoolOption {
50 BITMAP_TILE_TASK_WORKER_POOL, 50 BITMAP_TILE_TASK_WORKER_POOL,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 class ParameterizedPixelResourceTest 83 class ParameterizedPixelResourceTest
84 : public LayerTreeHostPixelResourceTest, 84 : public LayerTreeHostPixelResourceTest,
85 public ::testing::WithParamInterface<PixelResourceTestCase> { 85 public ::testing::WithParamInterface<PixelResourceTestCase> {
86 public: 86 public:
87 ParameterizedPixelResourceTest(); 87 ParameterizedPixelResourceTest();
88 }; 88 };
89 89
90 } // namespace cc 90 } // namespace cc
91 91
92 #endif // CC_TEST_LAYER_TREE_PIXEL_RESOURCE_TEST_H_ 92 #endif // CC_TEST_LAYER_TREE_PIXEL_RESOURCE_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698