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

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

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 years, 10 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/gpu_rasterization_enabled_settings.h ('k') | cc/test/layer_test_common.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TEST_COMMON_H_ 5 #ifndef CC_TEST_LAYER_TEST_COMMON_H_
6 #define CC_TEST_LAYER_TEST_COMMON_H_ 6 #define CC_TEST_LAYER_TEST_COMMON_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 static void VerifyQuadsExactlyCoverRect(const QuadList& quads, 47 static void VerifyQuadsExactlyCoverRect(const QuadList& quads,
48 const gfx::Rect& rect); 48 const gfx::Rect& rect);
49 49
50 static void VerifyQuadsAreOccluded(const QuadList& quads, 50 static void VerifyQuadsAreOccluded(const QuadList& quads,
51 const gfx::Rect& occluded, 51 const gfx::Rect& occluded,
52 size_t* partially_occluded_count); 52 size_t* partially_occluded_count);
53 53
54 class LayerImplTest { 54 class LayerImplTest {
55 public: 55 public:
56 LayerImplTest(); 56 LayerImplTest();
57 explicit LayerImplTest(
58 std::unique_ptr<CompositorFrameSink> compositor_frame_sink);
57 explicit LayerImplTest(const LayerTreeSettings& settings); 59 explicit LayerImplTest(const LayerTreeSettings& settings);
60 LayerImplTest(const LayerTreeSettings& settings,
61 std::unique_ptr<CompositorFrameSink> compositor_frame_sink);
58 ~LayerImplTest(); 62 ~LayerImplTest();
59 63
60 template <typename T> 64 template <typename T>
61 T* AddChildToRoot() { 65 T* AddChildToRoot() {
62 std::unique_ptr<T> layer = 66 std::unique_ptr<T> layer =
63 T::Create(host_->host_impl()->active_tree(), layer_impl_id_++); 67 T::Create(host_->host_impl()->active_tree(), layer_impl_id_++);
64 T* ptr = layer.get(); 68 T* ptr = layer.get();
65 root_layer_for_testing()->test_properties()->AddChild(std::move(layer)); 69 root_layer_for_testing()->test_properties()->AddChild(std::move(layer));
66 return ptr; 70 return ptr;
67 } 71 }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 std::unique_ptr<RenderPass> render_pass_; 184 std::unique_ptr<RenderPass> render_pass_;
181 scoped_refptr<AnimationTimeline> timeline_; 185 scoped_refptr<AnimationTimeline> timeline_;
182 scoped_refptr<AnimationTimeline> timeline_impl_; 186 scoped_refptr<AnimationTimeline> timeline_impl_;
183 int layer_impl_id_; 187 int layer_impl_id_;
184 }; 188 };
185 }; 189 };
186 190
187 } // namespace cc 191 } // namespace cc
188 192
189 #endif // CC_TEST_LAYER_TEST_COMMON_H_ 193 #endif // CC_TEST_LAYER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/gpu_rasterization_enabled_settings.h ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698