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

Unified Diff: cc/test/mock_quad_culler.cc

Issue 309493002: Remove QuadCuller class and make QuadSink concrete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test2ownMock
Patch Set: gn build fix 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_quad_culler.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/mock_quad_culler.cc
diff --git a/cc/test/mock_quad_culler.cc b/cc/test/mock_quad_culler.cc
index d3d0ce9fdcf064801b588205c91ed1ccbe83128f..e1b140bbd395ff4f07d345f5b2767e783211f3ce 100644
--- a/cc/test/mock_quad_culler.cc
+++ b/cc/test/mock_quad_culler.cc
@@ -4,25 +4,17 @@
#include "cc/test/mock_quad_culler.h"
-#include "cc/base/math_util.h"
-#include "cc/layers/layer_impl.h"
-#include "cc/quads/draw_quad.h"
-
namespace cc {
MockQuadCuller::MockQuadCuller(
- RenderPass* external_render_pass,
+ RenderPass* render_pass,
MockOcclusionTracker<LayerImpl>* occlusion_tracker)
- : active_render_pass_(external_render_pass),
+ : QuadSink(render_pass, occlusion_tracker),
occlusion_tracker_(occlusion_tracker) {
}
MockQuadCuller::~MockQuadCuller() {}
-SharedQuadState* MockQuadCuller::CreateSharedQuadState() {
- return active_render_pass_->CreateAndAppendSharedQuadState();
-}
-
gfx::Rect MockQuadCuller::UnoccludedContentRect(
const gfx::Rect& content_rect,
const gfx::Transform& draw_transform) {
@@ -37,10 +29,5 @@ gfx::Rect MockQuadCuller::UnoccludedContributingSurfaceContentRect(
content_rect, draw_transform);
}
-void MockQuadCuller::Append(scoped_ptr<DrawQuad> draw_quad) {
- DCHECK(!draw_quad->rect.IsEmpty());
- DCHECK(!draw_quad->visible_rect.IsEmpty());
- active_render_pass_->quad_list.push_back(draw_quad.Pass());
-}
-
} // namespace cc
+
« no previous file with comments | « cc/test/mock_quad_culler.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698