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

Unified Diff: ui/compositor/paint_cache.h

Issue 1423653005: Further plumb visual rect into cc:DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: De-static const rect in test. Created 5 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
Index: ui/compositor/paint_cache.h
diff --git a/ui/compositor/paint_cache.h b/ui/compositor/paint_cache.h
index b42c9c06ef7c15cea25056ce6634163ff61fbbd7..2070380a63499ccb893ee73a1a289da468445a4c 100644
--- a/ui/compositor/paint_cache.h
+++ b/ui/compositor/paint_cache.h
@@ -7,6 +7,7 @@
#include "cc/playback/drawing_display_item.h"
#include "ui/compositor/compositor_export.h"
+#include "ui/gfx/geometry/rect.h"
namespace ui {
class PaintContext;
@@ -29,9 +30,11 @@ class COMPOSITOR_EXPORT PaintCache {
// Only PaintRecorder can modify these.
friend PaintRecorder;
- void SetCache(const cc::DrawingDisplayItem* item);
+ void SetCache(const gfx::Rect& layer_bounds,
+ const cc::DrawingDisplayItem* item);
bool has_cache_;
+ gfx::Rect layer_bounds_;
cc::DrawingDisplayItem display_item_;
DISALLOW_COPY_AND_ASSIGN(PaintCache);

Powered by Google App Engine
This is Rietveld 408576698