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

Unified Diff: Source/platform/graphics/ColorSpace.h

Issue 1083213004: Move createColorSpaceFilter from ImageBuffer to ColorSpaceUtilities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/platform/graphics/ColorSpace.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/ColorSpace.h
diff --git a/Source/platform/graphics/ColorSpace.h b/Source/platform/graphics/ColorSpace.h
index d76828e000466e1ec0b0c3d64628087536a5e87c..85b0092c060e6473e62c843de201f11a4ead8727 100644
--- a/Source/platform/graphics/ColorSpace.h
+++ b/Source/platform/graphics/ColorSpace.h
@@ -28,6 +28,9 @@
#include "platform/PlatformExport.h"
#include "platform/graphics/Color.h"
+#include "wtf/PassRefPtr.h"
+
+class SkColorFilter;
namespace blink {
@@ -49,6 +52,9 @@ const uint8_t* getConversionLUT(ColorSpace dstColorSpace, ColorSpace srcColorSpa
// Convert a Color assumed to be in the |srcColorSpace| into the |dstColorSpace|.
Color convertColor(const Color& srcColor, ColorSpace dstColorSpace, ColorSpace srcColorSpace = ColorSpaceDeviceRGB);
+// Create a color filter that will convert from |srcColorSpace| into |dstColorSpace|.
+PassRefPtr<SkColorFilter> createColorSpaceFilter(ColorSpace srcColorSpace, ColorSpace dstColorSpace);
+
} // namespace ColorSpaceUtilities
} // namespace blink
« no previous file with comments | « no previous file | Source/platform/graphics/ColorSpace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698