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

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

Issue 2402583005: Split picture layer quads to allow removing more occluded area. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 3 years, 6 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/layers/video_layer_impl_unittest.cc ('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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class LayerTestCommon { 47 class LayerTestCommon {
48 public: 48 public:
49 static const char* quad_string; 49 static const char* quad_string;
50 50
51 static void VerifyQuadsExactlyCoverRect(const QuadList& quads, 51 static void VerifyQuadsExactlyCoverRect(const QuadList& quads,
52 const gfx::Rect& rect); 52 const gfx::Rect& rect);
53 53
54 static void VerifyQuadsAreOccluded(const QuadList& quads, 54 static void VerifyQuadsAreOccluded(const QuadList& quads,
55 const gfx::Rect& occluded, 55 const gfx::Rect& occluded,
56 bool split_quads,
56 size_t* partially_occluded_count); 57 size_t* partially_occluded_count);
57 58
58 class LayerImplTest { 59 class LayerImplTest {
59 public: 60 public:
60 LayerImplTest(); 61 LayerImplTest();
61 explicit LayerImplTest( 62 explicit LayerImplTest(
62 std::unique_ptr<CompositorFrameSink> compositor_frame_sink); 63 std::unique_ptr<CompositorFrameSink> compositor_frame_sink);
63 explicit LayerImplTest(const LayerTreeSettings& settings); 64 explicit LayerImplTest(const LayerTreeSettings& settings);
64 LayerImplTest(const LayerTreeSettings& settings, 65 LayerImplTest(const LayerTreeSettings& settings,
65 std::unique_ptr<CompositorFrameSink> compositor_frame_sink); 66 std::unique_ptr<CompositorFrameSink> compositor_frame_sink);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 std::unique_ptr<RenderPass> render_pass_; 208 std::unique_ptr<RenderPass> render_pass_;
208 scoped_refptr<AnimationTimeline> timeline_; 209 scoped_refptr<AnimationTimeline> timeline_;
209 scoped_refptr<AnimationTimeline> timeline_impl_; 210 scoped_refptr<AnimationTimeline> timeline_impl_;
210 int layer_impl_id_; 211 int layer_impl_id_;
211 }; 212 };
212 }; 213 };
213 214
214 } // namespace cc 215 } // namespace cc
215 216
216 #endif // CC_TEST_LAYER_TEST_COMMON_H_ 217 #endif // CC_TEST_LAYER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/layers/video_layer_impl_unittest.cc ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698