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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FilterEffect.h

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/FilterEffect.h
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FilterEffect.h b/third_party/WebKit/Source/platform/graphics/filters/FilterEffect.h
index d5a2e23788064f68d3b8b79c9eb10bde03d5f417..2f8cd41b56784482be9af2037d8be4cae3738236 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FilterEffect.h
+++ b/third_party/WebKit/Source/platform/graphics/filters/FilterEffect.h
@@ -27,7 +27,7 @@
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntRect.h"
#include "platform/graphics/Color.h"
-#include "platform/graphics/ColorSpace.h"
+#include "platform/graphics/InterpolationSpace.h"
#include "platform/heap/Handle.h"
#include "platform/wtf/Noncopyable.h"
#include "platform/wtf/Vector.h"
@@ -99,9 +99,12 @@ class PLATFORM_EXPORT FilterEffect
bool ClipsToBounds() const { return clips_to_bounds_; }
void SetClipsToBounds(bool value) { clips_to_bounds_ = value; }
- ColorSpace OperatingColorSpace() const { return operating_color_space_; }
- virtual void SetOperatingColorSpace(ColorSpace color_space) {
- operating_color_space_ = color_space;
+ InterpolationSpace OperatingInterpolationSpace() const {
+ return operating_interpolation_space_;
+ }
+ virtual void SetOperatingInterpolationSpace(
+ InterpolationSpace interpolation_space) {
+ operating_interpolation_space_ = interpolation_space;
}
virtual bool AffectsTransparentPixels() const { return false; }
@@ -110,9 +113,9 @@ class PLATFORM_EXPORT FilterEffect
// values, with alpha in [0,255] and each color component in [0, alpha].
virtual bool MayProduceInvalidPreMultipliedPixels() { return false; }
- SkImageFilter* GetImageFilter(ColorSpace,
+ SkImageFilter* GetImageFilter(InterpolationSpace,
bool requires_pm_color_validation) const;
- void SetImageFilter(ColorSpace,
+ void SetImageFilter(InterpolationSpace,
bool requires_pm_color_validation,
sk_sp<SkImageFilter>);
@@ -137,7 +140,7 @@ class PLATFORM_EXPORT FilterEffect
sk_sp<SkImageFilter> CreateTransparentBlack() const;
- Color AdaptColorToOperatingColorSpace(const Color& device_color);
+ Color AdaptColorToOperatingInterpolationSpace(const Color& device_color);
SkImageFilter::CropRect GetCropRect() const;
@@ -160,7 +163,7 @@ class PLATFORM_EXPORT FilterEffect
bool origin_tainted_;
- ColorSpace operating_color_space_;
+ InterpolationSpace operating_interpolation_space_;
sk_sp<SkImageFilter> image_filters_[4];
};

Powered by Google App Engine
This is Rietveld 408576698