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

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: append-rendersurface: headers 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
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/quad_sink.h
diff --git a/cc/layers/quad_sink.h b/cc/layers/quad_sink.h
index 1b824703aadbdadb28575b980e46076bbeca70e7..add4e996af5d511cd8a2cd03fc949b9410e8d1b3 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(
+ const gfx::Rect& content_rect,
+ const 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;
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698