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

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

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/ImageBufferSurface.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
index 9139f790a4bb34a736f71704b01cb9d7a08a770c..10858cc531556ab3c56e57badd69d00b43617776 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
@@ -41,12 +41,8 @@ namespace blink {
ImageBufferSurface::ImageBufferSurface(const IntSize& size,
OpacityMode opacity_mode,
- sk_sp<SkColorSpace> color_space,
- SkColorType color_type)
- : opacity_mode_(opacity_mode),
- size_(size),
- color_space_(color_space),
- color_type_(color_type) {
+ const CanvasColorParams& color_params)
+ : opacity_mode_(opacity_mode), size_(size), color_params_(color_params) {
SetIsHidden(false);
}

Powered by Google App Engine
This is Rietveld 408576698