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

Unified Diff: sky/engine/core/painting/Canvas.idl

Issue 1214833004: Split Size into Size and Offset. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/engine/core/painting/Canvas.cpp ('k') | sky/engine/core/painting/DrawLooperLayerInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Canvas.idl
diff --git a/sky/engine/core/painting/Canvas.idl b/sky/engine/core/painting/Canvas.idl
index 754664d736b48434246d404289140b5e2788fed2..f3be665a353870ff6a36d99ecef396e2a8e14489 100644
--- a/sky/engine/core/painting/Canvas.idl
+++ b/sky/engine/core/painting/Canvas.idl
@@ -4,7 +4,7 @@
// TODO(mpcomplete): Figure out a better SkMatrix representation.
[
- Constructor(PictureRecorder recorder, double width, double height),
+ Constructor(PictureRecorder recorder, Size bounds),
RaisesException=Constructor,
] interface Canvas {
void save();
@@ -22,14 +22,14 @@
void clipRRect(RRect rrect);
void clipPath(Path path);
- void drawLine(float x0, float y0, float x1, float y1, Paint paint);
+ void drawLine(Point p1, Point p2, Paint paint);
void drawPicture(Picture picture);
void drawPaint(Paint paint);
void drawRect(Rect rect, Paint paint);
void drawRRect(RRect rrect, Paint paint);
void drawOval(Rect rect, Paint paint);
- void drawCircle(float x, float y, float radius, Paint paint);
+ void drawCircle(Point c, float radius, Paint paint);
void drawPath(Path path, Paint paint);
- void drawImage(Image image, float x, float y, Paint paint);
+ void drawImage(Image image, Point p, Paint paint);
void drawImageRect(Image image, Rect src, Rect dst, Paint paint);
};
« no previous file with comments | « sky/engine/core/painting/Canvas.cpp ('k') | sky/engine/core/painting/DrawLooperLayerInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698