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

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

Issue 134733016: Add support for converting Colors to linear RGB; Fix relevant filters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase; update TestExpectations Created 6 years, 11 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
« no previous file with comments | « Source/platform/graphics/filters/FELighting.cpp ('k') | Source/platform/graphics/filters/FilterEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FilterEffect.h
diff --git a/Source/platform/graphics/filters/FilterEffect.h b/Source/platform/graphics/filters/FilterEffect.h
index e582fc0895729234ac37a5c7710229671235a3d8..8e4c351797b89e23242f9b4739f65183519eb87e 100644
--- a/Source/platform/graphics/filters/FilterEffect.h
+++ b/Source/platform/graphics/filters/FilterEffect.h
@@ -26,6 +26,7 @@
#include "platform/PlatformExport.h"
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntRect.h"
+#include "platform/graphics/Color.h"
#include "platform/graphics/ColorSpace.h"
#include "third_party/skia/include/core/SkImageFilter.h"
@@ -183,6 +184,8 @@ protected:
Uint8ClampedArray* createUnmultipliedImageResult();
Uint8ClampedArray* createPremultipliedImageResult();
+ Color adaptColorToOperatingColorSpace(const Color& deviceColor);
+
// Return true if the filter will only operate correctly on valid RGBA values, with
// alpha in [0,255] and each color component in [0, alpha].
virtual bool requiresValidPreMultipliedPixels() { return true; }
« no previous file with comments | « Source/platform/graphics/filters/FELighting.cpp ('k') | Source/platform/graphics/filters/FilterEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698