Index: sky/engine/core/painting/Canvas.idl |
diff --git a/sky/engine/core/painting/Canvas.idl b/sky/engine/core/painting/Canvas.idl |
index 538e492905fec0d317325082afcfbefe3e73898f..53713f8f22578098fd075a9cf81e4f653f7592e7 100644 |
--- a/sky/engine/core/painting/Canvas.idl |
+++ b/sky/engine/core/painting/Canvas.idl |
@@ -3,12 +3,9 @@ |
// found in the LICENSE file. |
// TODO(mpcomplete): Figure out a better SkMatrix representation. |
-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; |
- |
+[ |
+ Constructor(PictureRecorder recorder, double width, double height), |
+] interface Canvas { |
void save(); |
// TODO(jackson): Paint should be optional, but making it optional causes crash |
void saveLayer(Rect bounds, /* optional */ Paint paint); |