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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.cpp

Issue 2884313002: color: Rename blink::ColorSpace to blink::InterpolationSpace (Closed)
Patch Set: Incorporate review feedback Created 3 years, 7 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/filters/FEDropShadow.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.cpp
index baabc743ee1245c607177f948d23b68e0ad9f411..96dabb9e5b5d85af5bda56bec3c7bd76491c13f9 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.cpp
@@ -75,13 +75,13 @@ FloatRect FEDropShadow::MapEffect(const FloatRect& rect) const {
}
sk_sp<SkImageFilter> FEDropShadow::CreateImageFilter() {
- sk_sp<SkImageFilter> input(
- SkiaImageFilterBuilder::Build(InputEffect(0), OperatingColorSpace()));
+ sk_sp<SkImageFilter> input(SkiaImageFilterBuilder::Build(
+ InputEffect(0), OperatingInterpolationSpace()));
float dx = GetFilter()->ApplyHorizontalScale(dx_);
float dy = GetFilter()->ApplyVerticalScale(dy_);
float std_x = GetFilter()->ApplyHorizontalScale(std_x_);
float std_y = GetFilter()->ApplyVerticalScale(std_y_);
- Color color = AdaptColorToOperatingColorSpace(
+ Color color = AdaptColorToOperatingInterpolationSpace(
shadow_color_.CombineWithAlpha(shadow_opacity_));
SkImageFilter::CropRect crop_rect = GetCropRect();
return SkDropShadowImageFilter::Make(

Powered by Google App Engine
This is Rietveld 408576698