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

Unified Diff: ui/gfx/color_space.h

Issue 2598833002: Add SkColorSpace to gfx::ColorSpace (Closed)
Patch Set: Add tests Created 4 years 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 | « ui/gfx/BUILD.gn ('k') | ui/gfx/color_space.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index d1fa5829774cb5884968fbbdf2c5b2fc2c8ac44f..e05fbc3124c572f9f1cea342343e343f9ff4c331 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -10,6 +10,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "build/build_config.h"
+#include "third_party/skia/include/core/SkColorSpace.h"
#include "ui/gfx/gfx_export.h"
namespace IPC {
@@ -17,10 +18,6 @@ template <class P>
struct ParamTraits;
} // namespace IPC
-template <typename T>
-class sk_sp;
-class SkColorSpace;
-
namespace gfx {
class ICCProfile;
@@ -144,7 +141,9 @@ class GFX_EXPORT ColorSpace {
TransferID transfer,
MatrixID matrix,
RangeID full_range);
+ ColorSpace(const ColorSpace& other);
ColorSpace(int primaries, int transfer, int matrix, RangeID full_range);
+ ~ColorSpace();
static PrimaryID PrimaryIDFromInt(int primary_id);
static TransferID TransferIDFromInt(int transfer_id);
@@ -179,6 +178,8 @@ class GFX_EXPORT ColorSpace {
// created, if possible.
uint64_t icc_profile_id_ = 0;
+ sk_sp<SkColorSpace> sk_color_space_;
+
friend class ICCProfile;
friend class ColorSpaceToColorSpaceTransform;
friend class ColorSpaceWin;
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/color_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698