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); |