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

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: Created 6 years, 1 month 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..af06538a5cfbf265e17f6aa04f9214b2130231d4 100644
--- a/Source/core/html/HTMLCanvasElement.h
+++ b/Source/core/html/HTMLCanvasElement.h
@@ -119,7 +119,7 @@ public:
void ensureUnacceleratedImageBuffer();
ImageBuffer* buffer() const;
- Image* copiedImage(SourceDrawingBuffer) const;
+ PassRefPtr<Image> copiedImage(SourceDrawingBuffer) const;
void clearCopiedImage();
SecurityOrigin* securityOrigin() const;
@@ -132,6 +132,7 @@ public:
bool hasImageBuffer() const { return m_imageBuffer; }
bool hasValidImageBuffer() const;
+ bool canCreateImageBuffer() const;
void discardImageBuffer();
bool shouldAccelerate(const IntSize&) const;

Powered by Google App Engine
This is Rietveld 408576698