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

Unified Diff: cc/test/mock_quad_culler.h

Issue 308193003: Removed QuadSink and MockQuadCuller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumLayerImpl
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/mock_occlusion_tracker.h ('k') | cc/test/mock_quad_culler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/mock_quad_culler.h
diff --git a/cc/test/mock_quad_culler.h b/cc/test/mock_quad_culler.h
deleted file mode 100644
index ca2f0aa3e52ccec88850f12697d2d92f6e56f8a9..0000000000000000000000000000000000000000
--- a/cc/test/mock_quad_culler.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2012 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_QUAD_CULLER_H_
-#define CC_TEST_MOCK_QUAD_CULLER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "cc/layers/quad_sink.h"
-#include "cc/quads/draw_quad.h"
-#include "cc/quads/render_pass.h"
-#include "cc/test/mock_occlusion_tracker.h"
-
-namespace cc {
-class LayerImpl;
-
-class MockQuadCuller : public QuadSink {
- public:
- virtual ~MockQuadCuller();
-
- MockQuadCuller(RenderPass* render_pass,
- MockOcclusionTracker<LayerImpl>* occlusion_tracker);
-
- virtual gfx::Rect UnoccludedContentRect(
- const gfx::Rect& content_rect,
- const gfx::Transform& draw_transform) OVERRIDE;
-
- virtual gfx::Rect UnoccludedContributingSurfaceContentRect(
- const gfx::Rect& content_rect,
- const gfx::Transform& draw_transform) OVERRIDE;
-
- const QuadList& quad_list() const { return render_pass_->quad_list; }
- const SharedQuadStateList& shared_quad_state_list() const {
- return render_pass_->shared_quad_state_list;
- }
-
- void set_occluded_target_rect(const gfx::Rect& occluded) {
- occlusion_tracker_->set_occluded_target_rect(occluded);
- }
-
- void set_occluded_target_rect_for_contributing_surface(
- const gfx::Rect& occluded) {
- occlusion_tracker_->set_occluded_target_rect_for_contributing_surface(
- occluded);
- }
-
- void clear_lists() {
- render_pass_->quad_list.clear();
- render_pass_->shared_quad_state_list.clear();
- }
-
- private:
- MockOcclusionTracker<LayerImpl>* occlusion_tracker_;
-};
-
-} // namespace cc
-
-#endif // CC_TEST_MOCK_QUAD_CULLER_H_
« no previous file with comments | « cc/test/mock_occlusion_tracker.h ('k') | cc/test/mock_quad_culler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698