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 |