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

Unified Diff: cc/test/test_occlusion_tracker.h

Issue 497493004: cc: Stop testing occlusion by making awkward queries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unoccluded: replicaqueries Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_occlusion_tracker.h
diff --git a/cc/test/test_occlusion_tracker.h b/cc/test/test_occlusion_tracker.h
index 1f51d676f9b50bb75a1bbf77eee0b4d86a6460d6..ca8a664fbd7960020a40949baffb3876d00e0e19 100644
--- a/cc/test/test_occlusion_tracker.h
+++ b/cc/test/test_occlusion_tracker.h
@@ -52,6 +52,21 @@ class TestOcclusionTracker : public OcclusionTracker<LayerType> {
OcclusionTracker<LayerType>::stack_.back().occlusion_from_inside_target =
region;
}
+
+ void set_occlusion_on_contributing_surface_from_outside_target(
+ const SimpleEnclosedRegion& region) {
+ size_t stack_size = OcclusionTracker<LayerType>::stack_.size();
+ DCHECK_GE(stack_size, 2u);
+ OcclusionTracker<LayerType>::stack_[stack_size - 2]
+ .occlusion_from_outside_target = region;
+ }
+ void set_occlusion_on_contributing_surface_from_inside_target(
+ const SimpleEnclosedRegion& region) {
+ size_t stack_size = OcclusionTracker<LayerType>::stack_.size();
+ DCHECK_GE(stack_size, 2u);
+ OcclusionTracker<LayerType>::stack_[stack_size - 2]
+ .occlusion_from_inside_target = region;
+ }
};
} // namespace cc
« no previous file with comments | « no previous file | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698