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

Unified Diff: ui/gfx/skia_color_space_util.h

Issue 2915673003: ui/gfx: Use separate components for color_space and switches (Closed)
Patch Set: Fix windows build 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: ui/gfx/skia_color_space_util.h
diff --git a/ui/gfx/skia_color_space_util.h b/ui/gfx/skia_color_space_util.h
index 5ece50eca06d0dca08dbbb777b76959a8c29b625..d9bc555a6c6182ea03a79d20bd7e25788c494476 100644
--- a/ui/gfx/skia_color_space_util.h
+++ b/ui/gfx/skia_color_space_util.h
@@ -7,38 +7,39 @@
#include "third_party/skia/include/core/SkColorSpace.h"
#include "third_party/skia/include/core/SkICC.h"
-#include "ui/gfx/gfx_export.h"
+#include "ui/gfx/gfx_color_export.h"
namespace gfx {
-float GFX_EXPORT SkTransferFnEval(const SkColorSpaceTransferFn& fn, float x);
+float GFX_COLOR_EXPORT SkTransferFnEval(const SkColorSpaceTransferFn& fn,
+ float x);
-SkColorSpaceTransferFn GFX_EXPORT
+SkColorSpaceTransferFn GFX_COLOR_EXPORT
SkTransferFnInverse(const SkColorSpaceTransferFn& fn);
-bool GFX_EXPORT
+bool GFX_COLOR_EXPORT
SkTransferFnsApproximatelyCancel(const SkColorSpaceTransferFn& a,
const SkColorSpaceTransferFn& b);
-bool GFX_EXPORT
+bool GFX_COLOR_EXPORT
SkTransferFnIsApproximatelyIdentity(const SkColorSpaceTransferFn& fn);
// Approximates the |n| points in |x| and |t| by the transfer function |fn|.
// Returns true if the approximation converged.
-bool GFX_EXPORT SkApproximateTransferFn(const float* x,
- const float* t,
- size_t n,
- SkColorSpaceTransferFn* fn);
+bool GFX_COLOR_EXPORT SkApproximateTransferFn(const float* x,
+ const float* t,
+ size_t n,
+ SkColorSpaceTransferFn* fn);
// Approximates |sk_icc| by the transfer function |fn|. Returns in |max_error|
// the maximum pointwise of all color channels' transfer functions with |fn|.
// Returns false if no approximation was possible, or no approximation
// converged.
-bool GFX_EXPORT SkApproximateTransferFn(sk_sp<SkICC> sk_icc,
- float* max_error,
- SkColorSpaceTransferFn* fn);
+bool GFX_COLOR_EXPORT SkApproximateTransferFn(sk_sp<SkICC> sk_icc,
+ float* max_error,
+ SkColorSpaceTransferFn* fn);
-bool GFX_EXPORT SkMatrixIsApproximatelyIdentity(const SkMatrix44& m);
+bool GFX_COLOR_EXPORT SkMatrixIsApproximatelyIdentity(const SkMatrix44& m);
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698