OLD | NEW |
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 20 matching lines...) Expand all Loading... |
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 void CreateResourceAndTileTaskWorkerPool( | 38 void CreateResourceAndTileTaskWorkerPool( |
39 LayerTreeHostImpl* host_impl, | 39 LayerTreeHostImpl* host_impl, |
40 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, | 40 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, |
41 scoped_ptr<ResourcePool>* resource_pool, | 41 scoped_ptr<ResourcePool>* resource_pool) override; |
42 scoped_ptr<ResourcePool>* staging_resource_pool) override; | |
43 | 42 |
44 void RunPixelResourceTest(scoped_refptr<Layer> content_root, | 43 void RunPixelResourceTest(scoped_refptr<Layer> content_root, |
45 base::FilePath file_name); | 44 base::FilePath file_name); |
46 | 45 |
47 enum TileTaskWorkerPoolOption { | 46 enum TileTaskWorkerPoolOption { |
48 BITMAP_TILE_TASK_WORKER_POOL, | 47 BITMAP_TILE_TASK_WORKER_POOL, |
49 GPU_TILE_TASK_WORKER_POOL, | 48 GPU_TILE_TASK_WORKER_POOL, |
50 ZERO_COPY_TILE_TASK_WORKER_POOL, | 49 ZERO_COPY_TILE_TASK_WORKER_POOL, |
51 ONE_COPY_TILE_TASK_WORKER_POOL, | 50 ONE_COPY_TILE_TASK_WORKER_POOL, |
52 PIXEL_BUFFER_TILE_TASK_WORKER_POOL, | 51 PIXEL_BUFFER_TILE_TASK_WORKER_POOL, |
(...skipping 28 matching lines...) Expand all Loading... |
81 class ParameterizedPixelResourceTest | 80 class ParameterizedPixelResourceTest |
82 : public LayerTreeHostPixelResourceTest, | 81 : public LayerTreeHostPixelResourceTest, |
83 public ::testing::WithParamInterface<PixelResourceTestCase> { | 82 public ::testing::WithParamInterface<PixelResourceTestCase> { |
84 public: | 83 public: |
85 ParameterizedPixelResourceTest(); | 84 ParameterizedPixelResourceTest(); |
86 }; | 85 }; |
87 | 86 |
88 } // namespace cc | 87 } // namespace cc |
89 | 88 |
90 #endif // CC_TEST_LAYER_TREE_PIXEL_RESOURCE_TEST_H_ | 89 #endif // CC_TEST_LAYER_TREE_PIXEL_RESOURCE_TEST_H_ |
OLD | NEW |