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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContextHost.h

Issue 2849463005: Refactor ImageBuffer to make OffscreenCanvas match HTMLCanvasElement (Closed)
Patch Set: x Created 3 years, 8 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/html/canvas/CanvasRenderingContextHost.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContextHost.h b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContextHost.h
index f123b733d6e4822df6800a42d4282950e9e0ce1c..0f427bc694bfab96766603a2ccf7da0411930a50 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContextHost.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContextHost.h
@@ -13,6 +13,7 @@
#include "core/events/EventTarget.h"
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntSize.h"
+#include "platform/graphics/ImageBuffer.h"
#include "platform/heap/GarbageCollected.h"
namespace blink {
@@ -44,6 +45,10 @@ class CORE_EXPORT CanvasRenderingContextHost : public GarbageCollectedMixin {
ScriptState*,
ExceptionState&);
+ virtual void DiscardImageBuffer() = 0;
+ virtual ImageBuffer* GetImageBuffer() const = 0;
+ virtual ImageBuffer* GetOrCreateImageBuffer() = 0;
+
// TODO(fserb): remove this.
virtual bool IsOffscreenCanvas() const { return false; }

Powered by Google App Engine
This is Rietveld 408576698