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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h

Issue 2594843002: Implementing promise-based commit for driving OffscreenCanvas animations (Closed)
Patch Set: test fix Created 4 years 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: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
index 3baaa558eddea907b35b9e796f19f502d25535da..ccf03411c90563686b5c482b797046072557bf11 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
@@ -37,7 +37,7 @@ class MODULES_EXPORT OffscreenCanvasRenderingContext2D final
}
};
- void commit(ScriptState*, ExceptionState&);
+ ScriptPromise commit(ScriptState*, ExceptionState&);
// CanvasRenderingContext implementation
~OffscreenCanvasRenderingContext2D() override;
@@ -101,13 +101,14 @@ class MODULES_EXPORT OffscreenCanvasRenderingContext2D final
bool isPaintable() const final;
RefPtr<StaticBitmapImage> transferToStaticBitmapImage();
+ void doCommit(RefPtr<StaticBitmapImage>);
xlai (Olivia) 2016/12/21 19:54:25 I am confused that you add a function signature in
Justin Novosad 2016/12/21 21:15:40 Good catch. This is unused. It is a leftover from
};
DEFINE_TYPE_CASTS(OffscreenCanvasRenderingContext2D,
CanvasRenderingContext,
context,
- context->is2d() && context->getOffscreenCanvas(),
- context.is2d() && context.getOffscreenCanvas());
+ context->is2d() && context->offscreenCanvas(),
+ context.is2d() && context.offscreenCanvas());
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698