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

Unified Diff: core/fpdfapi/fpdf_page/cpdf_shadingpattern.h

Issue 2386423004: Move core/fpdfapi/fpdf_page to core/fpdfapi/page (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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_page/cpdf_shadingpattern.h
diff --git a/core/fpdfapi/fpdf_page/cpdf_shadingpattern.h b/core/fpdfapi/fpdf_page/cpdf_shadingpattern.h
deleted file mode 100644
index e2bcef268a713eb0ac25006c65753283a1e298b1..0000000000000000000000000000000000000000
--- a/core/fpdfapi/fpdf_page/cpdf_shadingpattern.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_
-#define CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_
-
-#include <memory>
-#include <vector>
-
-#include "core/fpdfapi/fpdf_page/cpdf_countedobject.h"
-#include "core/fpdfapi/fpdf_page/cpdf_pattern.h"
-#include "core/fxcrt/fx_system.h"
-
-enum ShadingType {
- kInvalidShading = 0,
- kFunctionBasedShading = 1,
- kAxialShading = 2,
- kRadialShading = 3,
- kFreeFormGouraudTriangleMeshShading = 4,
- kLatticeFormGouraudTriangleMeshShading = 5,
- kCoonsPatchMeshShading = 6,
- kTensorProductPatchMeshShading = 7,
- kMaxShading = 8
-};
-
-class CFX_Matrix;
-class CPDF_ColorSpace;
-class CPDF_Document;
-class CPDF_Function;
-class CPDF_Object;
-
-class CPDF_ShadingPattern : public CPDF_Pattern {
- public:
- CPDF_ShadingPattern(CPDF_Document* pDoc,
- CPDF_Object* pPatternObj,
- FX_BOOL bShading,
- const CFX_Matrix& parentMatrix);
- ~CPDF_ShadingPattern() override;
-
- CPDF_TilingPattern* AsTilingPattern() override;
- CPDF_ShadingPattern* AsShadingPattern() override;
-
- bool IsMeshShading() const {
- return m_ShadingType == kFreeFormGouraudTriangleMeshShading ||
- m_ShadingType == kLatticeFormGouraudTriangleMeshShading ||
- m_ShadingType == kCoonsPatchMeshShading ||
- m_ShadingType == kTensorProductPatchMeshShading;
- }
- bool Load();
-
- ShadingType GetShadingType() const { return m_ShadingType; }
- FX_BOOL IsShadingObject() const { return m_bShadingObj; }
- CPDF_Object* GetShadingObject() const { return m_pShadingObj; }
- CPDF_ColorSpace* GetCS() const { return m_pCS; }
- const std::vector<std::unique_ptr<CPDF_Function>>& GetFuncs() const {
- return m_pFunctions;
- }
-
- private:
- ShadingType m_ShadingType;
- FX_BOOL m_bShadingObj;
- CPDF_Object* m_pShadingObj;
-
- // Still keep |m_pCS| as some CPDF_ColorSpace (name object) are not managed
- // as counted objects. Refer to CPDF_DocPageData::GetColorSpace.
- CPDF_ColorSpace* m_pCS;
-
- CPDF_CountedColorSpace* m_pCountedCS;
- std::vector<std::unique_ptr<CPDF_Function>> m_pFunctions;
-};
-
-#endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_
« 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