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

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

Issue 2825183002: Plumb CanvasColorParams to canvas image classes (Closed)
Patch Set: Require both runtime flags Created 3 years, 8 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 31c143f9595cea6138b8dc50bc3ef172bba1285c..2a6cf946bfd278feb8425a7d7e514a3043e8d767 100644
--- a/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h
@@ -47,8 +47,8 @@ class PLATFORM_EXPORT UnacceleratedImageBufferSurface
const IntSize&,
OpacityMode = kNonOpaque,
ImageInitializationMode = kInitializeImagePixels,
- sk_sp<SkColorSpace> = nullptr,
- SkColorType = kN32_SkColorType);
+ const CanvasColorParams& = CanvasColorParams(kLegacyCanvasColorSpace,
+ kRGBA8CanvasPixelFormat));
~UnacceleratedImageBufferSurface() override;
PaintCanvas* Canvas() override;

Powered by Google App Engine
This is Rietveld 408576698