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

Unified Diff: cc/debug_rect_history.h

Issue 11377122: cc: Visualize non-occluding rects in composited layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 1 month 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 | « no previous file | cc/debug_rect_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug_rect_history.h
diff --git a/cc/debug_rect_history.h b/cc/debug_rect_history.h
index ff2ea8dfd928758d3b46af8da3d169f7e82f8f6b..b8c507744193e4c67f438a9bba82e314617809b3 100644
--- a/cc/debug_rect_history.h
+++ b/cc/debug_rect_history.h
@@ -35,7 +35,10 @@ struct LayerTreeSettings;
//
// - Occluding rects: these are the regions that contribute to the occluded region.
//
-enum DebugRectType { PaintRectType, PropertyChangedRectType, SurfaceDamageRectType, ScreenSpaceRectType, ReplicaScreenSpaceRectType, OccludingRectType };
+// - Non-Occluding rects: these are the regions of composited layers that do not
+// contribute to the occluded region.
+//
+enum DebugRectType { PaintRectType, PropertyChangedRectType, SurfaceDamageRectType, ScreenSpaceRectType, ReplicaScreenSpaceRectType, OccludingRectType, NonOccludingRectType };
struct DebugRect {
DebugRect(DebugRectType newType, gfx::RectF newRect)
@@ -56,7 +59,7 @@ public:
~DebugRectHistory();
// Note: Saving debug rects must happen before layers' change tracking is reset.
- void saveDebugRectsForCurrentFrame(LayerImpl* rootLayer, const std::vector<LayerImpl*>& renderSurfaceLayerList, const std::vector<gfx::Rect>& occludingScreenSpaceRects, const LayerTreeSettings&);
+ void saveDebugRectsForCurrentFrame(LayerImpl* rootLayer, const std::vector<LayerImpl*>& renderSurfaceLayerList, const std::vector<gfx::Rect>& occludingScreenSpaceRects, const std::vector<gfx::Rect>& nonOccludingScreenSpaceRects, const LayerTreeSettings&);
const std::vector<DebugRect>& debugRects() { return m_debugRects; }
@@ -68,6 +71,7 @@ private:
void saveSurfaceDamageRects(const std::vector<LayerImpl* >& renderSurfaceLayerList);
void saveScreenSpaceRects(const std::vector<LayerImpl* >& renderSurfaceLayerList);
void saveOccludingRects(const std::vector<gfx::Rect>& occludingScreenSpaceRects);
+ void saveNonOccludingRects(const std::vector<gfx::Rect>& nonOccludingScreenSpaceRects);
std::vector<DebugRect> m_debugRects;
« no previous file with comments | « no previous file | cc/debug_rect_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698