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

Unified Diff: cc/test/mock_occlusion_tracker.h

Issue 1535833002: Delete CC. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-5
Patch Set: rebase Created 4 years, 11 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/impl_side_painting_settings.h ('k') | cc/test/ordered_simple_task_runner.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
deleted file mode 100644
index 649eb7634bde19ce003ca3df26fbf592e66d3d0d..0000000000000000000000000000000000000000
--- a/cc/test/mock_occlusion_tracker.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_TEST_MOCK_OCCLUSION_TRACKER_H_
-#define CC_TEST_MOCK_OCCLUSION_TRACKER_H_
-
-#include "cc/trees/occlusion_tracker.h"
-
-namespace cc {
-
-template <typename LayerType>
-class MockOcclusionTracker : public OcclusionTracker<LayerType> {
- // This class is used for testing only. It fakes just enough information to
- // calculate unoccluded content rect and unoccluded contributing surface
- // 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;
- OcclusionTracker<LayerType>::stack_.push_back(stack_obj);
- OcclusionTracker<LayerType>::stack_.push_back(stack_obj);
- }
-
- void set_occluded_target_rect(const gfx::Rect& occluded) {
- OcclusionTracker<LayerType>::stack_.back().occlusion_from_inside_target =
- occluded;
- }
-
- void set_occluded_target_rect_for_contributing_surface(
- const gfx::Rect& occluded) {
- OcclusionTracker<
- LayerType>::stack_[OcclusionTracker<LayerType>::stack_.size() - 2]
- .occlusion_from_inside_target = occluded;
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockOcclusionTracker);
-};
-
-} // namespace cc
-
-#endif // CC_TEST_MOCK_OCCLUSION_TRACKER_H_
« no previous file with comments | « cc/test/impl_side_painting_settings.h ('k') | cc/test/ordered_simple_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698