Chromium Code Reviews| Index: ui/compositor/clip_transform_recorder.h |
| diff --git a/ui/compositor/clip_transform_recorder.h b/ui/compositor/clip_transform_recorder.h |
| index 897718ba613039e3b110b2febb5006893b7a30f5..7d01c2122a4862e5e857043fd3c6c8a5df715c0d 100644 |
| --- a/ui/compositor/clip_transform_recorder.h |
| +++ b/ui/compositor/clip_transform_recorder.h |
| @@ -10,6 +10,7 @@ |
| namespace gfx { |
| class Canvas; |
| +class Path; |
| class Rect; |
| class Transform; |
| } |
| @@ -24,15 +25,14 @@ class PaintContext; |
| // be clipped/transformed. |
| class COMPOSITOR_EXPORT ClipTransformRecorder { |
| public: |
| - ClipTransformRecorder(const PaintContext& context, |
| - const gfx::Rect& clip_rect); |
| - ClipTransformRecorder(const PaintContext& context, |
| - const gfx::Transform& transform); |
| - ClipTransformRecorder(const PaintContext& context, |
| - const gfx::Rect& clip_rect, |
| - const gfx::Transform& transform); |
| + ClipTransformRecorder(const PaintContext& context); |
|
piman
2015/04/06 21:24:01
nit: explicit
danakj
2015/04/06 21:25:33
good eye :) thanks, done.
|
| ~ClipTransformRecorder(); |
| + void ClipRect(const gfx::Rect& clip_rect); |
| + void ClipPath(const gfx::Path& clip_path); |
| + void ClipPathWithAntiAliasing(const gfx::Path& clip_path); |
| + void Transform(const gfx::Transform& transform); |
| + |
| private: |
| gfx::Canvas* canvas_; |