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

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.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/Canvas2DLayerBridge.h
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
index 9417d67424ffd10f3a2c24c05342c13dc574bab2..eec71a56cb7ff094b3d265f8d98d08ff100fa714 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
@@ -93,9 +93,7 @@ class PLATFORM_EXPORT Canvas2DLayerBridge
int msaa_sample_count,
OpacityMode,
AccelerationMode,
- const gfx::ColorSpace&,
- bool sk_surfaces_use_color_space,
- SkColorType);
+ const CanvasColorParams&);
~Canvas2DLayerBridge() override;
@@ -141,8 +139,7 @@ class PLATFORM_EXPORT Canvas2DLayerBridge
void BeginDestruction();
void Hibernate();
bool IsHibernating() const { return hibernation_image_.get(); }
- sk_sp<SkColorSpace> SkSurfaceColorSpace() const;
- SkColorType ColorType() const { return color_type_; }
+ const CanvasColorParams& color_params() const { return color_params_; }
bool HasRecordedDrawCommands() { return have_recorded_draw_commands_; }
@@ -286,11 +283,7 @@ class PLATFORM_EXPORT Canvas2DLayerBridge
AccelerationMode acceleration_mode_;
OpacityMode opacity_mode_;
const IntSize size_;
- // The color space that the compositor is to use. This will always be
- // defined.
- gfx::ColorSpace color_space_;
- bool sk_surfaces_use_color_space_ = false;
- SkColorType color_type_;
+ CanvasColorParams color_params_;
int recording_pixel_count_;
#if USE_IOSURFACE_FOR_2D_CANVAS

Powered by Google App Engine
This is Rietveld 408576698