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

Side by Side Diff: core/src/fpdfapi/fpdf_page/pageint.h

Issue 1783933002: Change colorspace's number of components to be unsigned (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments 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
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 #ifndef CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 7 #ifndef CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_
8 #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 8 #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 FX_FLOAT* m_pDomains; 389 FX_FLOAT* m_pDomains;
390 FX_FLOAT* m_pRanges; 390 FX_FLOAT* m_pRanges;
391 FX_BOOL Init(CPDF_Object* pObj); 391 FX_BOOL Init(CPDF_Object* pObj);
392 virtual FX_BOOL v_Init(CPDF_Object* pObj) = 0; 392 virtual FX_BOOL v_Init(CPDF_Object* pObj) = 0;
393 virtual FX_BOOL v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const = 0; 393 virtual FX_BOOL v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const = 0;
394 }; 394 };
395 class CPDF_IccProfile { 395 class CPDF_IccProfile {
396 public: 396 public:
397 CPDF_IccProfile(const uint8_t* pData, FX_DWORD dwSize); 397 CPDF_IccProfile(const uint8_t* pData, FX_DWORD dwSize);
398 ~CPDF_IccProfile(); 398 ~CPDF_IccProfile();
399 int32_t GetComponents() const { return m_nSrcComponents; } 399 FX_DWORD GetComponents() const { return m_nSrcComponents; }
400 FX_BOOL m_bsRGB; 400 FX_BOOL m_bsRGB;
401 void* m_pTransform; 401 void* m_pTransform;
402 402
403 private: 403 private:
404 int32_t m_nSrcComponents; 404 FX_DWORD m_nSrcComponents;
405 }; 405 };
406 406
407 class CPDF_DeviceCS : public CPDF_ColorSpace { 407 class CPDF_DeviceCS : public CPDF_ColorSpace {
408 public: 408 public:
409 CPDF_DeviceCS(CPDF_Document* pDoc, int family); 409 CPDF_DeviceCS(CPDF_Document* pDoc, int family);
410 410
411 FX_BOOL GetRGB(FX_FLOAT* pBuf, 411 FX_BOOL GetRGB(FX_FLOAT* pBuf,
412 FX_FLOAT& R, 412 FX_FLOAT& R,
413 FX_FLOAT& G, 413 FX_FLOAT& G,
414 FX_FLOAT& B) const override; 414 FX_FLOAT& B) const override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 450
451 private: 451 private:
452 CPDF_ColorSpace* m_pBaseCS; 452 CPDF_ColorSpace* m_pBaseCS;
453 CPDF_CountedColorSpace* m_pCountedBaseCS; 453 CPDF_CountedColorSpace* m_pCountedBaseCS;
454 }; 454 };
455 455
456 void PDF_ReplaceAbbr(CPDF_Object* pObj); 456 void PDF_ReplaceAbbr(CPDF_Object* pObj);
457 bool IsPathOperator(const uint8_t* buf, size_t len); 457 bool IsPathOperator(const uint8_t* buf, size_t len);
458 458
459 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 459 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp ('k') | core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698