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

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

Issue 1190123003: Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia co… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rework the API a bit 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
Index: sky/engine/core/painting/PictureRecorder.idl
diff --git a/sky/engine/core/painting/PictureRecorder.idl b/sky/engine/core/painting/PictureRecorder.idl
index b1ea18510b980135bc66694d42e9bd76c926f779..29d45ef47ea81d6e4465bd4f1f9a044fabab3688 100644
--- a/sky/engine/core/painting/PictureRecorder.idl
+++ b/sky/engine/core/painting/PictureRecorder.idl
@@ -2,7 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
- Constructor(double width, double height)
-] interface PictureRecorder : Canvas {
+ Constructor()
+] interface PictureRecorder {
+ readonly attribute boolean isRecording;
+ Canvas beginRecording(double width, double height);
Picture endRecording();
+ void setCanvas(Canvas canvas);
Hixie 2015/06/20 00:44:52 Exposing setCanvas() to dart seems really dodgy to
abarth-chromium 2015/06/20 00:50:29 This API doesn't make sense. We should find anoth
};

Powered by Google App Engine
This is Rietveld 408576698