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

Unified Diff: ui/compositor/clip_transform_recorder.h

Issue 1062813004: views: Use ClipTransformRecorder to access canvas in ProfileChooserView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | ui/compositor/clip_transform_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | ui/compositor/clip_transform_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698