Index: ui/compositor/clip_transform_recorder.h |
diff --git a/ui/compositor/clip_transform_recorder.h b/ui/compositor/clip_transform_recorder.h |
index 276b845cf5b3351dd8036b7e0085b848a624fa5e..4c3e2e27fa89e289f9812ed8c81ec0bf24a774df 100644 |
--- a/ui/compositor/clip_transform_recorder.h |
+++ b/ui/compositor/clip_transform_recorder.h |
@@ -9,6 +9,7 @@ |
#include "base/macros.h" |
#include "ui/compositor/compositor_export.h" |
+#include "ui/gfx/geometry/rect.h" |
namespace cc { |
class DisplayItem; |
@@ -17,7 +18,7 @@ class DisplayItemList; |
namespace gfx { |
class Path; |
-class Rect; |
+class Size; |
class Transform; |
} |
@@ -31,7 +32,8 @@ class PaintContext; |
// be clipped/transformed. |
class COMPOSITOR_EXPORT ClipTransformRecorder { |
public: |
- explicit ClipTransformRecorder(const PaintContext& context); |
+ explicit ClipTransformRecorder(const PaintContext& context, |
+ const gfx::Size& size_in_layer); |
sky
2015/11/19 00:37:34
nit: no explicit, and you don't describe what size
wkorman
2015/11/25 00:26:39
Done.
|
~ClipTransformRecorder(); |
void ClipRect(const gfx::Rect& clip_rect); |
@@ -46,6 +48,7 @@ class COMPOSITOR_EXPORT ClipTransformRecorder { |
TRANSFORM, |
}; |
const PaintContext& context_; |
+ const gfx::Rect bounds_in_layer_; |
// If someone needs to do more than this many operations with a single |
// ClipTransformRecorder then increase the size of the closers_ array. |
Closer closers_[4]; |