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

Side by Side Diff: core/fpdfapi/page/cpdf_colorspace.cpp

Issue 2392603004: Move core/fpdfapi/fpdf_parser to core/fpdfapi/parser (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/page/cpdf_color.cpp ('k') | core/fpdfapi/page/cpdf_contentmark.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 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 #include "core/fpdfapi/page/cpdf_colorspace.h" 7 #include "core/fpdfapi/page/cpdf_colorspace.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "core/fpdfapi/cpdf_modulemgr.h" 11 #include "core/fpdfapi/cpdf_modulemgr.h"
12 #include "core/fpdfapi/fpdf_parser/cpdf_array.h"
13 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
14 #include "core/fpdfapi/fpdf_parser/cpdf_document.h"
15 #include "core/fpdfapi/fpdf_parser/cpdf_object.h"
16 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h"
17 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h"
18 #include "core/fpdfapi/fpdf_parser/cpdf_string.h"
19 #include "core/fpdfapi/page/cpdf_pagemodule.h" 12 #include "core/fpdfapi/page/cpdf_pagemodule.h"
20 #include "core/fpdfapi/page/pageint.h" 13 #include "core/fpdfapi/page/pageint.h"
14 #include "core/fpdfapi/parser/cpdf_array.h"
15 #include "core/fpdfapi/parser/cpdf_dictionary.h"
16 #include "core/fpdfapi/parser/cpdf_document.h"
17 #include "core/fpdfapi/parser/cpdf_object.h"
18 #include "core/fpdfapi/parser/cpdf_stream.h"
19 #include "core/fpdfapi/parser/cpdf_stream_acc.h"
20 #include "core/fpdfapi/parser/cpdf_string.h"
21 #include "core/fxcodec/fx_codec.h" 21 #include "core/fxcodec/fx_codec.h"
22 22
23 namespace { 23 namespace {
24 24
25 const uint8_t g_sRGBSamples1[] = { 25 const uint8_t g_sRGBSamples1[] = {
26 0, 3, 6, 10, 13, 15, 18, 20, 22, 23, 25, 27, 28, 30, 31, 26 0, 3, 6, 10, 13, 15, 18, 20, 22, 23, 25, 27, 28, 30, 31,
27 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 27 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
28 48, 49, 49, 50, 51, 52, 53, 53, 54, 55, 56, 56, 57, 58, 58, 28 48, 49, 49, 50, 51, 52, 53, 53, 54, 55, 56, 56, 57, 58, 58,
29 59, 60, 61, 61, 62, 62, 63, 64, 64, 65, 66, 66, 67, 67, 68, 29 59, 60, 61, 61, 62, 62, 63, 64, 64, 65, 66, 66, 67, 67, 68,
30 68, 69, 70, 70, 71, 71, 72, 72, 73, 73, 74, 74, 75, 76, 76, 30 68, 69, 70, 70, 71, 71, 72, 72, 73, 73, 74, 74, 75, 76, 76,
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 1268
1269 return m_pAltCS->GetRGB(results, R, G, B); 1269 return m_pAltCS->GetRGB(results, R, G, B);
1270 } 1270 }
1271 1271
1272 void CPDF_DeviceNCS::EnableStdConversion(FX_BOOL bEnabled) { 1272 void CPDF_DeviceNCS::EnableStdConversion(FX_BOOL bEnabled) {
1273 CPDF_ColorSpace::EnableStdConversion(bEnabled); 1273 CPDF_ColorSpace::EnableStdConversion(bEnabled);
1274 if (m_pAltCS) { 1274 if (m_pAltCS) {
1275 m_pAltCS->EnableStdConversion(bEnabled); 1275 m_pAltCS->EnableStdConversion(bEnabled);
1276 } 1276 }
1277 } 1277 }
OLDNEW
« no previous file with comments | « core/fpdfapi/page/cpdf_color.cpp ('k') | core/fpdfapi/page/cpdf_contentmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698