summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_colorspace.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page/cpdf_colorspace.h')
-rw-r--r--core/fpdfapi/page/cpdf_colorspace.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_colorspace.h b/core/fpdfapi/page/cpdf_colorspace.h
index e9108578f5..b9879d135c 100644
--- a/core/fpdfapi/page/cpdf_colorspace.h
+++ b/core/fpdfapi/page/cpdf_colorspace.h
@@ -53,9 +53,12 @@ class CPDF_ColorSpace {
void Release();
- int GetBufSize() const;
- float* CreateBuf();
- void GetDefaultColor(float* buf) const;
+ size_t GetBufSize() const;
+ float* CreateBuf() const;
+
+ // Should only be called if this colorspace is not a pattern.
+ float* CreateBufAndSetDefaultColor() const;
+
uint32_t CountComponents() const;
int GetFamily() const { return m_Family; }
bool IsSpecial() const {