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

Unified Diff: cc/test/mock_occlusion_tracker.h

Issue 306683002: MockQC stops create its own RP and MockOcclusionTracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testocclusiontracking
Patch Set: rebase Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/mock_quad_culler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/mock_occlusion_tracker.h
diff --git a/cc/test/mock_occlusion_tracker.h b/cc/test/mock_occlusion_tracker.h
index 69e2e5a8b1063c27f2deec3e4c862f11305935d4..6a88bce22ff7e5998c35cbf64a36a4eac80af0da 100644
--- a/cc/test/mock_occlusion_tracker.h
+++ b/cc/test/mock_occlusion_tracker.h
@@ -16,6 +16,13 @@ class MockOcclusionTracker : public OcclusionTracker<LayerType> {
// content rect. It calls the helper function of occlusion tracker to avoid
// DCHECKs since testing environment won't be set up properly to pass those.
public:
+ MockOcclusionTracker()
+ : OcclusionTracker<LayerType>(gfx::Rect(0, 0, 1000, 1000)) {
+ typename OcclusionTracker<LayerType>::StackObject stack_obj;
+ OcclusionTracker<LayerType>::stack_.push_back(stack_obj);
+ OcclusionTracker<LayerType>::stack_.push_back(stack_obj);
+ }
+
explicit MockOcclusionTracker(const gfx::Rect& screen_scissor_rect)
: OcclusionTracker<LayerType>(screen_scissor_rect) {
typename OcclusionTracker<LayerType>::StackObject stack_obj;
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/mock_quad_culler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698