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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h

Issue 2778483002: Synchronize commits at end of JS task (Closed)
Patch Set: fix layout test Created 3 years, 9 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: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
index 2d121a593c7edf695356e7c7a0ec0e440476c11c..aa76cda16c7278fd887400cb0e986856d1a9f814 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
@@ -91,6 +91,7 @@ class CORE_EXPORT OffscreenCanvas final
ScriptPromise commit(RefPtr<StaticBitmapImage>,
bool isWebGLSoftwareRendering,
ScriptState*);
+ void finalizeFrame();
void detachContext() { m_context = nullptr; }
@@ -157,9 +158,11 @@ class CORE_EXPORT OffscreenCanvas final
bool isPaintable() const;
std::unique_ptr<OffscreenCanvasFrameDispatcher> m_frameDispatcher;
+
Member<ScriptPromiseResolver> m_commitPromiseResolver;
- RefPtr<StaticBitmapImage> m_overdrawFrame;
- bool m_overdrawFrameIsWebGLSoftwareRendering = false;
+ RefPtr<StaticBitmapImage> m_currentFrame;
+ bool m_currentFrameIsWebGLSoftwareRendering = false;
+
// cc::FrameSinkId is broken into two integer components as this can be used
// in transfer of OffscreenCanvas across threads
// If this object is not created via

Powered by Google App Engine
This is Rietveld 408576698