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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.h

Issue 2625873005: Add an heuristic for promoting canvases to GPU acceleration (Closed)
Patch Set: webgl test fix Created 3 years, 11 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/platform/graphics/ImageBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
index 435e534ab268fba5812c17123862592074e8787c..4fed4e1140111ef1051d5e21705f6733ea7ac594 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
@@ -101,7 +101,6 @@ class PLATFORM_EXPORT ImageBuffer {
bool wasDrawnToAfterSnapshot() const {
return m_snapshotState == DrawnToAfterSnapshot;
}
- void didDisableAcceleration() const;
void setFilterQuality(SkFilterQuality filterQuality) {
m_surface->setFilterQuality(filterQuality);
@@ -182,6 +181,7 @@ class PLATFORM_EXPORT ImageBuffer {
intptr_t getGPUMemoryUsage() { return m_gpuMemoryUsage; }
void disableAcceleration();
+ void setSurface(std::unique_ptr<ImageBufferSurface>);
WeakPtrFactory<ImageBuffer> m_weakPtrFactory;

Powered by Google App Engine
This is Rietveld 408576698