| 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_COLORSPACE_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_COLORSPACE_H_ |
| 8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_COLORSPACE_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_COLORSPACE_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "core/fxcrt/include/fx_string.h" | 12 #include "core/fxcrt/include/fx_string.h" |
| 13 #include "core/fxcrt/include/fx_system.h" | 13 #include "core/fxcrt/include/fx_system.h" |
| 14 | 14 |
| 15 #define PDFCS_DEVICEGRAY 1 | 15 #define PDFCS_DEVICEGRAY 1 |
| 16 #define PDFCS_DEVICERGB 2 | 16 #define PDFCS_DEVICERGB 2 |
| 17 #define PDFCS_DEVICECMYK 3 | 17 #define PDFCS_DEVICECMYK 3 |
| 18 #define PDFCS_CALGRAY 4 | 18 #define PDFCS_CALGRAY 4 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 template <> | 111 template <> |
| 112 struct default_delete<CPDF_ColorSpace> { | 112 struct default_delete<CPDF_ColorSpace> { |
| 113 void operator()(CPDF_ColorSpace* pColorSpace) const { | 113 void operator()(CPDF_ColorSpace* pColorSpace) const { |
| 114 if (pColorSpace) | 114 if (pColorSpace) |
| 115 pColorSpace->Release(); | 115 pColorSpace->Release(); |
| 116 } | 116 } |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace std | 119 } // namespace std |
| 120 | 120 |
| 121 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_COLORSPACE_H_ | 121 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_COLORSPACE_H_ |
| OLD | NEW |