Index: ui/compositor/compositing_recorder.h |
diff --git a/ui/compositor/compositing_recorder.h b/ui/compositor/compositing_recorder.h |
index 729ddb9d5816f62a0972158e683eade9a42f2c86..90e137dac29a3ac9ad38396246823e9c45d15bac 100644 |
--- a/ui/compositor/compositing_recorder.h |
+++ b/ui/compositor/compositing_recorder.h |
@@ -8,6 +8,11 @@ |
#include "base/basictypes.h" |
#include "base/macros.h" |
#include "ui/compositor/compositor_export.h" |
+#include "ui/gfx/geometry/rect.h" |
+ |
+namespace gfx { |
+class Size; |
+} |
namespace ui { |
class PaintContext; |
@@ -21,11 +26,14 @@ class COMPOSITOR_EXPORT CompositingRecorder { |
public: |
// |alpha| is a value between 0 and 255, where 0 is transparent and 255 is |
// opaque. |
- CompositingRecorder(const PaintContext& context, uint8_t alpha); |
+ CompositingRecorder(const PaintContext& context, |
+ const gfx::Size& layer_size, |
+ uint8_t alpha); |
~CompositingRecorder(); |
private: |
const PaintContext& context_; |
+ const gfx::Rect layer_bounds_; |
bool saved_; |
DISALLOW_COPY_AND_ASSIGN(CompositingRecorder); |