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

Unified Diff: cc/layers/quad_sink.h

Issue 205503002: cc: Apply occlusion before creating quads in RenderSurfaceImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
Index: cc/layers/quad_sink.h
diff --git a/cc/layers/quad_sink.h b/cc/layers/quad_sink.h
index 1b824703aadbdadb28575b980e46076bbeca70e7..ad85ac16562e3c86292c2c7b16dca4d67869545c 100644
--- a/cc/layers/quad_sink.h
+++ b/cc/layers/quad_sink.h
@@ -16,6 +16,7 @@ class Transform;
namespace cc {
class DrawQuad;
+class LayerImpl;
class SharedQuadState;
class CC_EXPORT QuadSink {
@@ -32,6 +33,10 @@ class CC_EXPORT QuadSink {
const gfx::Rect& content_rect,
const gfx::Transform& draw_transform) = 0;
+ virtual gfx::Rect UnoccludedContributingSurfaceContentRect(
+ gfx::Rect& content_rect,
+ gfx::Transform& draw_transform) = 0;
+
// Returns true if the quad is added to the list, and false if the quad is
// entirely culled.
virtual bool MaybeAppend(scoped_ptr<DrawQuad> draw_quad) = 0;

Powered by Google App Engine
This is Rietveld 408576698