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

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

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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 unified diff | Download patch
« no previous file with comments | « cc/test/layer_tree_json_parser_unittest.cc ('k') | cc/test/layer_tree_pixel_resource_test.cc » ('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 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 18 matching lines...) Expand all
29 GL_ZERO_COPY_EXTERNAL_DRAW, 29 GL_ZERO_COPY_EXTERNAL_DRAW,
30 }; 30 };
31 31
32 class LayerTreeHostPixelResourceTest : public LayerTreePixelTest { 32 class LayerTreeHostPixelResourceTest : public LayerTreePixelTest {
33 public: 33 public:
34 explicit LayerTreeHostPixelResourceTest(PixelResourceTestCase test_case); 34 explicit LayerTreeHostPixelResourceTest(PixelResourceTestCase test_case);
35 LayerTreeHostPixelResourceTest(); 35 LayerTreeHostPixelResourceTest();
36 36
37 void CreateResourceAndTileTaskWorkerPool( 37 void CreateResourceAndTileTaskWorkerPool(
38 LayerTreeHostImpl* host_impl, 38 LayerTreeHostImpl* host_impl,
39 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, 39 std::unique_ptr<TileTaskWorkerPool>* tile_task_worker_pool,
40 scoped_ptr<ResourcePool>* resource_pool) override; 40 std::unique_ptr<ResourcePool>* resource_pool) override;
41 41
42 void RunPixelResourceTest(scoped_refptr<Layer> content_root, 42 void RunPixelResourceTest(scoped_refptr<Layer> content_root,
43 base::FilePath file_name); 43 base::FilePath file_name);
44 44
45 enum TileTaskWorkerPoolOption { 45 enum TileTaskWorkerPoolOption {
46 BITMAP_TILE_TASK_WORKER_POOL, 46 BITMAP_TILE_TASK_WORKER_POOL,
47 GPU_TILE_TASK_WORKER_POOL, 47 GPU_TILE_TASK_WORKER_POOL,
48 ZERO_COPY_TILE_TASK_WORKER_POOL, 48 ZERO_COPY_TILE_TASK_WORKER_POOL,
49 ONE_COPY_TILE_TASK_WORKER_POOL 49 ONE_COPY_TILE_TASK_WORKER_POOL
50 }; 50 };
(...skipping 21 matching lines...) Expand all
72 class ParameterizedPixelResourceTest 72 class ParameterizedPixelResourceTest
73 : public LayerTreeHostPixelResourceTest, 73 : public LayerTreeHostPixelResourceTest,
74 public ::testing::WithParamInterface<PixelResourceTestCase> { 74 public ::testing::WithParamInterface<PixelResourceTestCase> {
75 public: 75 public:
76 ParameterizedPixelResourceTest(); 76 ParameterizedPixelResourceTest();
77 }; 77 };
78 78
79 } // namespace cc 79 } // namespace cc
80 80
81 #endif // CC_TEST_LAYER_TREE_PIXEL_RESOURCE_TEST_H_ 81 #endif // CC_TEST_LAYER_TREE_PIXEL_RESOURCE_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_json_parser_unittest.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