summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_colorspace.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-05-25 14:04:59 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-25 18:17:31 +0000
commit5acacd361b15b82a8b30cdd5cb92abb8a2104ecf (patch)
treef602c78b802f67f41ea2099f8c7051a324060162 /core/fpdfapi/page/cpdf_colorspace.h
parente0e2cd4f8a5634f2878f9b3bf3ce321ffd53a980 (diff)
downloadpdfium-5acacd361b15b82a8b30cdd5cb92abb8a2104ecf.tar.xz
Break apart the pageint.h file.
This CL separates pageint.h and the supporting cpp files into indivudal class files. Change-Id: Idcadce41976a8cd5f0d916e6a5ebbc283fd36527 Reviewed-on: https://pdfium-review.googlesource.com/5930 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_colorspace.h')
-rw-r--r--core/fpdfapi/page/cpdf_colorspace.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/fpdfapi/page/cpdf_colorspace.h b/core/fpdfapi/page/cpdf_colorspace.h
index 9e1c4dea18..c8c2abf0da 100644
--- a/core/fpdfapi/page/cpdf_colorspace.h
+++ b/core/fpdfapi/page/cpdf_colorspace.h
@@ -9,6 +9,7 @@
#include <memory>
+#include "core/fpdfapi/page/cpdf_pattern.h"
#include "core/fxcrt/cfx_unowned_ptr.h"
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/fx_system.h"
@@ -29,6 +30,14 @@ class CPDF_Array;
class CPDF_Document;
class CPDF_Object;
+#define MAX_PATTERN_COLORCOMPS 16
+struct PatternValue {
+ CPDF_Pattern* m_pPattern;
+ CPDF_CountedPattern* m_pCountedPattern;
+ int m_nComps;
+ float m_Comps[MAX_PATTERN_COLORCOMPS];
+};
+
class CPDF_ColorSpace {
public:
static CPDF_ColorSpace* GetStockCS(int Family);
@@ -85,6 +94,7 @@ class CPDF_ColorSpace {
CFX_UnownedPtr<CPDF_Array> m_pArray;
uint32_t m_dwStdConversion;
};
+using CPDF_CountedColorSpace = CPDF_CountedObject<CPDF_ColorSpace>;
namespace std {