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

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

Issue 1507043004: Cleanup CPDF_DIBSource::LoadColorInfo() and ValidateDictParam(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 public: 395 public:
396 explicit CPDF_DocPageData(CPDF_Document* pPDFDoc); 396 explicit CPDF_DocPageData(CPDF_Document* pPDFDoc);
397 ~CPDF_DocPageData(); 397 ~CPDF_DocPageData();
398 398
399 void Clear(FX_BOOL bRelease = FALSE); 399 void Clear(FX_BOOL bRelease = FALSE);
400 CPDF_Font* GetFont(CPDF_Dictionary* pFontDict, FX_BOOL findOnly); 400 CPDF_Font* GetFont(CPDF_Dictionary* pFontDict, FX_BOOL findOnly);
401 CPDF_Font* GetStandardFont(const CFX_ByteStringC& fontName, 401 CPDF_Font* GetStandardFont(const CFX_ByteStringC& fontName,
402 CPDF_FontEncoding* pEncoding); 402 CPDF_FontEncoding* pEncoding);
403 void ReleaseFont(CPDF_Dictionary* pFontDict); 403 void ReleaseFont(CPDF_Dictionary* pFontDict);
404 CPDF_ColorSpace* GetColorSpace(CPDF_Object* pCSObj, 404 CPDF_ColorSpace* GetColorSpace(CPDF_Object* pCSObj,
405 CPDF_Dictionary* pResources); 405 const CPDF_Dictionary* pResources);
406 CPDF_ColorSpace* GetCopiedColorSpace(CPDF_Object* pCSObj); 406 CPDF_ColorSpace* GetCopiedColorSpace(CPDF_Object* pCSObj);
407 void ReleaseColorSpace(CPDF_Object* pColorSpace); 407 void ReleaseColorSpace(CPDF_Object* pColorSpace);
408 CPDF_Pattern* GetPattern(CPDF_Object* pPatternObj, 408 CPDF_Pattern* GetPattern(CPDF_Object* pPatternObj,
409 FX_BOOL bShading, 409 FX_BOOL bShading,
410 const CFX_AffineMatrix* matrix); 410 const CFX_AffineMatrix* matrix);
411 void ReleasePattern(CPDF_Object* pPatternObj); 411 void ReleasePattern(CPDF_Object* pPatternObj);
412 CPDF_Image* GetImage(CPDF_Object* pImageStream); 412 CPDF_Image* GetImage(CPDF_Object* pImageStream);
413 void ReleaseImage(CPDF_Object* pImageStream); 413 void ReleaseImage(CPDF_Object* pImageStream);
414 CPDF_IccProfile* GetIccProfile(CPDF_Stream* pIccProfileStream); 414 CPDF_IccProfile* GetIccProfile(CPDF_Stream* pIccProfileStream);
415 void ReleaseIccProfile(CPDF_IccProfile* pIccProfile); 415 void ReleaseIccProfile(CPDF_IccProfile* pIccProfile);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 FX_FLOAT& G, 519 FX_FLOAT& G,
520 FX_FLOAT& B) const override; 520 FX_FLOAT& B) const override;
521 CPDF_ColorSpace* GetBaseCS() const override; 521 CPDF_ColorSpace* GetBaseCS() const override;
522 522
523 private: 523 private:
524 CPDF_ColorSpace* m_pBaseCS; 524 CPDF_ColorSpace* m_pBaseCS;
525 CPDF_CountedColorSpace* m_pCountedBaseCS; 525 CPDF_CountedColorSpace* m_pCountedBaseCS;
526 }; 526 };
527 527
528 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 528 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698