OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_COLOR_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_COLOR_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_COLOR_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_COLOR_H_ |
9 | 9 |
10 #include "core/fpdfapi/fpdf_page/include/cpdf_colorspace.h" | 10 #include "core/fpdfapi/fpdf_page/cpdf_colorspace.h" |
11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
12 | 12 |
13 class CPDF_Pattern; | 13 class CPDF_Pattern; |
14 | 14 |
15 class CPDF_Color { | 15 class CPDF_Color { |
16 public: | 16 public: |
17 CPDF_Color(); | 17 CPDF_Color(); |
18 ~CPDF_Color(); | 18 ~CPDF_Color(); |
19 | 19 |
20 bool IsNull() const { return !m_pBuffer; } | 20 bool IsNull() const { return !m_pBuffer; } |
(...skipping 10 matching lines...) Expand all Loading... |
31 const CPDF_ColorSpace* GetColorSpace() const { return m_pCS; } | 31 const CPDF_ColorSpace* GetColorSpace() const { return m_pCS; } |
32 | 32 |
33 protected: | 33 protected: |
34 void ReleaseBuffer(); | 34 void ReleaseBuffer(); |
35 void ReleaseColorSpace(); | 35 void ReleaseColorSpace(); |
36 | 36 |
37 CPDF_ColorSpace* m_pCS; | 37 CPDF_ColorSpace* m_pCS; |
38 FX_FLOAT* m_pBuffer; | 38 FX_FLOAT* m_pBuffer; |
39 }; | 39 }; |
40 | 40 |
41 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_COLOR_H_ | 41 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_COLOR_H_ |
OLD | NEW |