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

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

Issue 1151673002: Sky: different tack for custom Rect type in the Canvas API. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: Float32List Created 5 years, 7 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.dart ('k') | sky/engine/core/painting/Rect.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 8aef9c562b3241af5a7e2c03ca7f40fc29d5c70a..f21ca40b5ac3587460fea2488f214267d5543ba4 100644
--- a/sky/engine/core/painting/Canvas.idl
+++ b/sky/engine/core/painting/Canvas.idl
@@ -3,14 +3,14 @@
// found in the LICENSE file.
// TODO(mpcomplete): Figure out a better SkMatrix representation.
-[CustomDart] interface Canvas {
+interface Canvas {
// Height and width are used for culling optimizations and do not necessarily
// imply that the Canvas is backed by a buffer with any specific bounds.
readonly attribute float height;
readonly attribute float width;
void save();
- void saveLayer(float[] bounds4 /* optional */, Paint paint /* optional */);
+ void saveLayer(Rect bounds /* optional */, Paint paint /* optional */);
void restore();
void translate(float dx, float dy);
@@ -19,12 +19,12 @@
void skew(float sx, float sy);
void concat(float[] matrix9);
- void clipRect(float[] rect4);
+ void clipRect(Rect rect);
void drawPicture(Picture picture);
void drawPaint(Paint paint);
- void drawRect(float[] rect4, Paint paint);
- void drawOval(float[] rect4, Paint paint);
+ void drawRect(Rect rect, Paint paint);
+ void drawOval(Rect rect, Paint paint);
void drawCircle(float x, float y, float radius, Paint paint);
};
« no previous file with comments | « sky/engine/core/painting/Canvas.dart ('k') | sky/engine/core/painting/Rect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698