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

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

Issue 2316643003: Reland Submit Compositor Frame from OffscreenCanvas on main (Closed)
Patch Set: Created 4 years, 3 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 162b2b874905d3185100ee844a0c8b06c5cfb778..5e6dd8b2fd0a5f897457132cf511c53ab0c04cb8 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
@@ -11,6 +11,7 @@
#include "core/html/HTMLCanvasElement.h"
#include "core/html/canvas/CanvasImageSource.h"
#include "platform/geometry/IntSize.h"
+#include "platform/graphics/OffscreenCanvasFrameDispatcher.h"
#include "platform/heap/Handle.h"
#include <memory>
@@ -50,6 +51,8 @@ public:
// TODO(crbug.com/630356): apply the flag to WebGL context as well
void setDisableReadingFromCanvasTrue() { m_disableReadingFromCanvas = true; }
+ OffscreenCanvasFrameDispatcher* getOrCreateFrameDispatcher();
+
void setSurfaceId(uint32_t clientId, uint32_t localId, uint64_t nonce)
{
m_clientId = clientId;
@@ -88,6 +91,7 @@ private:
bool isPaintable() const;
+ std::unique_ptr<OffscreenCanvasFrameDispatcher> m_frameDispatcher;
// cc::SurfaceId is broken into three integer components as this can be used
// in transfer of OffscreenCanvas across threads
// If this object is not created via HTMLCanvasElement.transferControlToOffscreen(),

Powered by Google App Engine
This is Rietveld 408576698