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

Side by Side Diff: core/fpdfapi/fpdf_page/fpdf_page_colors.cpp

Issue 1805663002: Move core/include/fpdfapi/fpdf_page.h to correct locations. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months 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 unified diff | Download patch
« no previous file with comments | « core/fpdfapi/fpdf_page/fpdf_page.cpp ('k') | core/fpdfapi/fpdf_page/fpdf_page_doc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 #include "core/fpdfapi/fpdf_page/pageint.h" 7 #include "core/fpdfapi/fpdf_page/pageint.h"
8 8
9 #include <limits.h> 9 #include <limits.h>
10 10
11 #include <algorithm> 11 #include <algorithm>
12 12
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
14 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
15 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 15 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
16 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" 16 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h"
17 #include "core/fpdfapi/include/cpdf_modulemgr.h" 17 #include "core/fpdfapi/include/cpdf_modulemgr.h"
18 #include "core/include/fpdfapi/fpdf_page.h"
19 #include "core/include/fxcodec/fx_codec.h" 18 #include "core/include/fxcodec/fx_codec.h"
20 19
21 namespace { 20 namespace {
22 21
23 void sRGB_to_AdobeCMYK(FX_FLOAT R, 22 void sRGB_to_AdobeCMYK(FX_FLOAT R,
24 FX_FLOAT G, 23 FX_FLOAT G,
25 FX_FLOAT B, 24 FX_FLOAT B,
26 FX_FLOAT& c, 25 FX_FLOAT& c,
27 FX_FLOAT& m, 26 FX_FLOAT& m,
28 FX_FLOAT& y, 27 FX_FLOAT& y,
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 if (!m_pBuffer || m_pCS->GetFamily() != PDFCS_PATTERN) { 1540 if (!m_pBuffer || m_pCS->GetFamily() != PDFCS_PATTERN) {
1542 return NULL; 1541 return NULL;
1543 } 1542 }
1544 PatternValue* pvalue = (PatternValue*)m_pBuffer; 1543 PatternValue* pvalue = (PatternValue*)m_pBuffer;
1545 return pvalue->m_nComps ? pvalue->m_Comps : NULL; 1544 return pvalue->m_nComps ? pvalue->m_Comps : NULL;
1546 } 1545 }
1547 FX_BOOL CPDF_Color::IsEqual(const CPDF_Color& other) const { 1546 FX_BOOL CPDF_Color::IsEqual(const CPDF_Color& other) const {
1548 return m_pCS && m_pCS == other.m_pCS && 1547 return m_pCS && m_pCS == other.m_pCS &&
1549 FXSYS_memcmp(m_pBuffer, other.m_pBuffer, m_pCS->GetBufSize()) == 0; 1548 FXSYS_memcmp(m_pBuffer, other.m_pBuffer, m_pCS->GetBufSize()) == 0;
1550 } 1549 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/fpdf_page.cpp ('k') | core/fpdfapi/fpdf_page/fpdf_page_doc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698