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

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

Issue 656753002: Store the address of the page data map's value for proper referencing. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Clean up Created 6 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
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 _PAGEINT_H_ 7 #ifndef _PAGEINT_H_
8 #define _PAGEINT_H_ 8 #define _PAGEINT_H_
9 9
10 #include "../../../include/fpdfapi/fpdf_pageobj.h" 10 #include "../../../include/fpdfapi/fpdf_pageobj.h"
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 void ReleaseColorSpace(CPDF_Object* pColorSpace); 424 void ReleaseColorSpace(CPDF_Object* pColorSpace);
425 CPDF_Pattern* GetPattern(CPDF_Object* pPatternObj, FX_BOOL bSh ading, const CFX_AffineMatrix* matrix); 425 CPDF_Pattern* GetPattern(CPDF_Object* pPatternObj, FX_BOOL bSh ading, const CFX_AffineMatrix* matrix);
426 void ReleasePattern(CPDF_Object* pPatternObj); 426 void ReleasePattern(CPDF_Object* pPatternObj);
427 CPDF_Image* GetImage(CPDF_Object* pImageStream); 427 CPDF_Image* GetImage(CPDF_Object* pImageStream);
428 void ReleaseImage(CPDF_Object* pImageStream); 428 void ReleaseImage(CPDF_Object* pImageStream);
429 CPDF_IccProfile* GetIccProfile(CPDF_Stream* pIccProfileStream); 429 CPDF_IccProfile* GetIccProfile(CPDF_Stream* pIccProfileStream);
430 void ReleaseIccProfile(CPDF_Stream* pIccProfileStream , CPDF_IccProfile* pIccProfile); 430 void ReleaseIccProfile(CPDF_Stream* pIccProfileStream , CPDF_IccProfile* pIccProfile);
431 CPDF_StreamAcc* GetFontFileStreamAcc(CPDF_Stream* pFontStream); 431 CPDF_StreamAcc* GetFontFileStreamAcc(CPDF_Stream* pFontStream);
432 void ReleaseFontFileStreamAcc(CPDF_Stream* pFontStrea m, FX_BOOL bForce = FALSE); 432 void ReleaseFontFileStreamAcc(CPDF_Stream* pFontStrea m, FX_BOOL bForce = FALSE);
433 FX_BOOL IsForceClear() const {return m_bForceClear;} 433 FX_BOOL IsForceClear() const {return m_bForceClear;}
434 CPDF_ColorSpace** FindColorSpacePtr(CPDF_Object* pCSObj);
Tom Sepez 2014/10/14 20:39:31 nit: are these const methods? Is the arg a const
Bo Xu 2014/10/14 20:53:33 They are const methods, I will put that in.
435 CPDF_Pattern** FindPatternPtr(CPDF_Object* pPatternObj);
434 436
435 CPDF_Document* m_pPDFDoc; 437 CPDF_Document* m_pPDFDoc;
436 CPDF_FontMap m_FontMap; 438 CPDF_FontMap m_FontMap;
437 CPDF_ColorSpaceMap m_ColorSpaceMap; 439 CPDF_ColorSpaceMap m_ColorSpaceMap;
438 CPDF_PatternMap m_PatternMap; 440 CPDF_PatternMap m_PatternMap;
439 CPDF_ImageMap m_ImageMap; 441 CPDF_ImageMap m_ImageMap;
440 CPDF_IccProfileMap m_IccProfileMap; 442 CPDF_IccProfileMap m_IccProfileMap;
441 CFX_MapByteStringToPtr m_HashProfileMap; 443 CFX_MapByteStringToPtr m_HashProfileMap;
442 CPDF_FontFileMap m_FontFileMap; 444 CPDF_FontFileMap m_FontFileMap;
443 FX_BOOL m_bForceClear; 445 FX_BOOL m_bForceClear;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 public: 492 public:
491 CPDF_PatternCS(); 493 CPDF_PatternCS();
492 ~CPDF_PatternCS(); 494 ~CPDF_PatternCS();
493 virtual FX_BOOL v_Load(CPDF_Document* pDoc, CPDF_Array* pArray); 495 virtual FX_BOOL v_Load(CPDF_Document* pDoc, CPDF_Array* pArray);
494 virtual FX_BOOL GetRGB(FX_FLOAT* pBuf, FX_FLOAT& R, FX_FLOAT& G, FX_FLOAT& B) const; 496 virtual FX_BOOL GetRGB(FX_FLOAT* pBuf, FX_FLOAT& R, FX_FLOAT& G, FX_FLOAT& B) const;
495 virtual CPDF_ColorSpace* GetBaseCS() const 497 virtual CPDF_ColorSpace* GetBaseCS() const
496 { 498 {
497 return m_pBaseCS; 499 return m_pBaseCS;
498 } 500 }
499 CPDF_ColorSpace* m_pBaseCS; 501 CPDF_ColorSpace* m_pBaseCS;
502 CPDF_ColorSpace** m_pPtrBaseCS;
500 }; 503 };
501 #define MAX_PAGE_OBJECTS_UNIFY_NAMING 4096 504 #define MAX_PAGE_OBJECTS_UNIFY_NAMING 4096
502 class CPDF_ResourceNaming : public CFX_Object 505 class CPDF_ResourceNaming : public CFX_Object
503 { 506 {
504 public: 507 public:
505 struct _NamingState : public CFX_Object { 508 struct _NamingState : public CFX_Object {
506 CFX_ByteString m_Prefix; 509 CFX_ByteString m_Prefix;
507 int m_nIndex; 510 int m_nIndex;
508 }; 511 };
509 ~CPDF_ResourceNaming(); 512 ~CPDF_ResourceNaming();
510 CFX_ByteString GetName(const CPDF_Dictionary* pResList, FX_LPCS TR szType); 513 CFX_ByteString GetName(const CPDF_Dictionary* pResList, FX_LPCS TR szType);
511 protected: 514 protected:
512 CFX_MapByteStringToPtr m_NamingCache; 515 CFX_MapByteStringToPtr m_NamingCache;
513 }; 516 };
514 517
515 #endif // _PAGEINT_H_ 518 #endif // _PAGEINT_H_
OLDNEW
« core/include/fpdfapi/fpdf_resource.h ('K') | « core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698