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

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

Issue 1361043003: Revert of 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: 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/platform/graphics/ImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
index b28ebdcae1976be6fc70cbeea21ede0edded4291..4830d9b4c3522f3aee0c94e5f94a333df8c65e30 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
@@ -79,11 +79,10 @@
virtual Platform3DObject getBackingTextureHandleForOverwrite() { return 0; }
virtual void flush(); // Execute all deferred rendering immediately
virtual void flushGpu() { flush(); } // Like flush, but flushes all the way down to the GPU context if the surface uses the GPU
- virtual void prepareSurfaceForPaintingIfNeeded() { }
virtual bool writePixels(const SkImageInfo& origInfo, const void* pixels, size_t rowBytes, int x, int y);
// May return nullptr if the surface is GPU-backed and the GPU context was lost.
- virtual PassRefPtr<SkImage> newImageSnapshot(AccelerationHint) = 0;
+ virtual PassRefPtr<SkImage> newImageSnapshot() = 0;
OpacityMode opacityMode() const { return m_opacityMode; }
const IntSize& size() const { return m_size; }

Powered by Google App Engine
This is Rietveld 408576698