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

Unified Diff: Source/core/html/HTMLCanvasElement.h

Issue 758493004: canvas: make a temporary buffer when a context doesn't exist. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename to isPaintable() Created 6 years 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: Source/core/html/HTMLCanvasElement.h
diff --git a/Source/core/html/HTMLCanvasElement.h b/Source/core/html/HTMLCanvasElement.h
index ba89f02317fb25cc216e7952615a43482c39e8fc..60a1a606b259de724848dd38c51d0fb124517c08 100644
--- a/Source/core/html/HTMLCanvasElement.h
+++ b/Source/core/html/HTMLCanvasElement.h
@@ -101,6 +101,7 @@ public:
}
CanvasRenderingContext* getContext(const String&, CanvasContextAttributes* attributes = 0);
+ bool isPaintable() const;
static String toEncodingMimeType(const String& mimeType);
String toDataURL(const String& mimeType, const double* quality, ExceptionState&) const;
@@ -119,7 +120,7 @@ public:
void ensureUnacceleratedImageBuffer();
ImageBuffer* buffer() const;
- Image* copiedImage(SourceDrawingBuffer) const;
+ PassRefPtr<Image> copiedImage(SourceDrawingBuffer) const;
void clearCopiedImage();
SecurityOrigin* securityOrigin() const;

Powered by Google App Engine
This is Rietveld 408576698