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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.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/core/svg/graphics/filters/SVGFilterBuilder.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp
index 5c2f9bb8859ab083d8281b017dc50ccff2f08cfd..cd4950f32651d73f7c84164514b6e896c3b10f01 100644
--- a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp
@@ -158,10 +158,10 @@ static EColorInterpolation ColorInterpolationForElement(
return parent_color_interpolation;
}
-ColorSpace SVGFilterBuilder::ResolveColorSpace(
+InterpolationSpace SVGFilterBuilder::ResolveInterpolationSpace(
EColorInterpolation color_interpolation) {
- return color_interpolation == CI_LINEARRGB ? kColorSpaceLinearRGB
- : kColorSpaceDeviceRGB;
+ return color_interpolation == CI_LINEARRGB ? kInterpolationSpaceLinear
+ : kInterpolationSpaceSRGB;
}
void SVGFilterBuilder::BuildGraph(Filter* filter,
@@ -190,7 +190,8 @@ void SVGFilterBuilder::BuildGraph(Filter* filter,
reference_box);
EColorInterpolation color_interpolation = ColorInterpolationForElement(
*effect_element, filter_color_interpolation);
- effect->SetOperatingColorSpace(ResolveColorSpace(color_interpolation));
+ effect->SetOperatingInterpolationSpace(
+ ResolveInterpolationSpace(color_interpolation));
if (effect_element->TaintsOrigin(effect->InputsTaintOrigin()))
effect->SetOriginTainted();

Powered by Google App Engine
This is Rietveld 408576698