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

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

Issue 1382883002: Fixing performance issue of creating imagebitmap from ImageData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change enum type name and remove temps Created 5 years, 2 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/UnacceleratedImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h
index bc1139c1e23027497922aae1bd19948ff6d04559..11765b45de9b1af7788971fd2c70d76019bbbc64 100644
--- a/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h
@@ -41,7 +41,7 @@ namespace blink {
class PLATFORM_EXPORT UnacceleratedImageBufferSurface : public ImageBufferSurface {
WTF_MAKE_NONCOPYABLE(UnacceleratedImageBufferSurface); WTF_MAKE_FAST_ALLOCATED(UnacceleratedImageBufferSurface);
public:
- UnacceleratedImageBufferSurface(const IntSize&, OpacityMode = NonOpaque);
+ UnacceleratedImageBufferSurface(const IntSize&, OpacityMode = NonOpaque, ImageInitializationMode = InitializeImagePixels);
~UnacceleratedImageBufferSurface() override;
SkCanvas* canvas() override;

Powered by Google App Engine
This is Rietveld 408576698