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

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

Issue 1372463002: Re-land: Make 2D canvas smarter about chosing whether or not to use GPU acceleration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed assert Created 5 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/html/HTMLCanvasElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
index 7173957a4058858e351c7dfdc0b3cc0cc92042ce..2f786efeb103090cef8095a01b68d8140d6832aa 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
@@ -132,7 +132,7 @@ public:
void ensureUnacceleratedImageBuffer();
ImageBuffer* buffer() const;
- PassRefPtr<Image> copiedImage(SourceDrawingBuffer) const;
+ PassRefPtr<Image> copiedImage(SourceDrawingBuffer, AccelerationHint) const;
void clearCopiedImage();
SecurityOrigin* securityOrigin() const;
@@ -151,6 +151,8 @@ public:
bool shouldBeDirectComposited() const;
+ void prepareSurfaceForPaintingIfNeeded() const;
+
const AtomicString imageSourceURL() const override;
InsertionNotificationRequest insertedInto(ContainerNode*) override;
@@ -159,7 +161,7 @@ public:
void didChangeVisibilityState(PageVisibilityState) override;
// CanvasImageSource implementation
- PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*) const override;
+ PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHint) const override;
bool wouldTaintOrigin(SecurityOrigin*) const override;
FloatSize elementSize() const override;
bool isCanvasElement() const override { return true; }
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmap.cpp ('k') | third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698