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

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

Issue 2420203002: Implement convertToBlob() in OffscreenCanvas (Closed)
Patch Set: webgl layout test Created 4 years, 2 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 070c7481438d00f44b73b018729306e4b6f51408..f1a98c99ddb69e9deeb9fd6539f2f20627fe01a8 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
@@ -10,6 +10,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/html/HTMLCanvasElement.h"
#include "core/html/canvas/CanvasImageSource.h"
+#include "core/offscreencanvas/ImageEncodeOptions.h"
#include "platform/geometry/IntSize.h"
#include "platform/graphics/OffscreenCanvasFrameDispatcher.h"
#include "platform/heap/Handle.h"
@@ -61,6 +62,8 @@ class CORE_EXPORT OffscreenCanvas final
// TODO(crbug.com/630356): apply the flag to WebGL context as well
void setDisableReadingFromCanvasTrue() { m_disableReadingFromCanvas = true; }
+ bool isPaintable() const;
+
OffscreenCanvasFrameDispatcher* getOrCreateFrameDispatcher();
void setSurfaceId(uint32_t clientId,
@@ -111,8 +114,6 @@ class CORE_EXPORT OffscreenCanvas final
bool m_originClean;
bool m_disableReadingFromCanvas = false;
- 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

Powered by Google App Engine
This is Rietveld 408576698