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

Unified Diff: cc/trees/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/trees/quad_culler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/quad_culler.cc
diff --git a/cc/trees/quad_culler.cc b/cc/trees/quad_culler.cc
deleted file mode 100644
index db59fa5da5805bffe837996337b30f017f60dd88..0000000000000000000000000000000000000000
--- a/cc/trees/quad_culler.cc
+++ /dev/null
@@ -1,56 +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.
-
-#include "cc/trees/quad_culler.h"
-
-#include "cc/debug/debug_colors.h"
-#include "cc/layers/append_quads_data.h"
-#include "cc/layers/layer_impl.h"
-#include "cc/quads/debug_border_draw_quad.h"
-#include "cc/quads/render_pass.h"
-#include "cc/quads/render_pass_draw_quad.h"
-#include "cc/trees/occlusion_tracker.h"
-#include "third_party/skia/include/core/SkColor.h"
-#include "ui/gfx/transform.h"
-
-namespace cc {
-
-QuadCuller::QuadCuller(RenderPass* render_pass,
- const LayerImpl* layer,
- const OcclusionTracker<LayerImpl>& occlusion_tracker)
- : render_pass_(render_pass),
- layer_(layer),
- occlusion_tracker_(occlusion_tracker),
- current_shared_quad_state_(NULL) {
-}
-
-SharedQuadState* QuadCuller::CreateSharedQuadState() {
- current_shared_quad_state_ = render_pass_->CreateAndAppendSharedQuadState();
- return current_shared_quad_state_;
-}
-
-gfx::Rect QuadCuller::UnoccludedContentRect(
- const gfx::Rect& content_rect,
- const gfx::Transform& draw_transform) {
- return occlusion_tracker_.UnoccludedContentRect(content_rect, draw_transform);
-}
-
-gfx::Rect QuadCuller::UnoccludedContributingSurfaceContentRect(
- const gfx::Rect& content_rect,
- const gfx::Transform& draw_transform) {
- return occlusion_tracker_.UnoccludedContributingSurfaceContentRect(
- content_rect, draw_transform);
-}
-
-void QuadCuller::Append(scoped_ptr<DrawQuad> draw_quad) {
- DCHECK(draw_quad->shared_quad_state == current_shared_quad_state_);
- DCHECK(!render_pass_->shared_quad_state_list.empty());
- DCHECK(render_pass_->shared_quad_state_list.back() ==
- current_shared_quad_state_);
- DCHECK(!draw_quad->rect.IsEmpty());
- DCHECK(!draw_quad->visible_rect.IsEmpty());
- render_pass_->quad_list.push_back(draw_quad.Pass());
-}
-
-} // namespace cc
« no previous file with comments | « cc/trees/quad_culler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698