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

Side by Side Diff: core/fpdfapi/fpdf_page/cpdf_shadingpattern.h

Issue 2060973002: Make code compile with clang_use_chrome_plugin (part I) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 6 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 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 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_ 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 22 matching lines...) Expand all
33 class CPDF_Object; 33 class CPDF_Object;
34 34
35 class CPDF_ShadingPattern : public CPDF_Pattern { 35 class CPDF_ShadingPattern : public CPDF_Pattern {
36 public: 36 public:
37 CPDF_ShadingPattern(CPDF_Document* pDoc, 37 CPDF_ShadingPattern(CPDF_Document* pDoc,
38 CPDF_Object* pPatternObj, 38 CPDF_Object* pPatternObj,
39 FX_BOOL bShading, 39 FX_BOOL bShading,
40 const CFX_Matrix& parentMatrix); 40 const CFX_Matrix& parentMatrix);
41 ~CPDF_ShadingPattern() override; 41 ~CPDF_ShadingPattern() override;
42 42
43 CPDF_TilingPattern* AsTilingPattern() override { return nullptr; } 43 CPDF_TilingPattern* AsTilingPattern() override;
44 CPDF_ShadingPattern* AsShadingPattern() override { return this; } 44 CPDF_ShadingPattern* AsShadingPattern() override;
45 45
46 bool IsMeshShading() const { 46 bool IsMeshShading() const {
47 return m_ShadingType == kFreeFormGouraudTriangleMeshShading || 47 return m_ShadingType == kFreeFormGouraudTriangleMeshShading ||
48 m_ShadingType == kLatticeFormGouraudTriangleMeshShading || 48 m_ShadingType == kLatticeFormGouraudTriangleMeshShading ||
49 m_ShadingType == kCoonsPatchMeshShading || 49 m_ShadingType == kCoonsPatchMeshShading ||
50 m_ShadingType == kTensorProductPatchMeshShading; 50 m_ShadingType == kTensorProductPatchMeshShading;
51 } 51 }
52 bool Load(); 52 bool Load();
53 53
54 ShadingType GetShadingType() const { return m_ShadingType; } 54 ShadingType GetShadingType() const { return m_ShadingType; }
(...skipping 11 matching lines...) Expand all
66 66
67 // Still keep |m_pCS| as some CPDF_ColorSpace (name object) are not managed 67 // Still keep |m_pCS| as some CPDF_ColorSpace (name object) are not managed
68 // as counted objects. Refer to CPDF_DocPageData::GetColorSpace. 68 // as counted objects. Refer to CPDF_DocPageData::GetColorSpace.
69 CPDF_ColorSpace* m_pCS; 69 CPDF_ColorSpace* m_pCS;
70 70
71 CPDF_CountedColorSpace* m_pCountedCS; 71 CPDF_CountedColorSpace* m_pCountedCS;
72 std::vector<std::unique_ptr<CPDF_Function>> m_pFunctions; 72 std::vector<std::unique_ptr<CPDF_Function>> m_pFunctions;
73 }; 73 };
74 74
75 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_ 75 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698