summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/cpdf_clippathdata.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-02 17:34:21 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-02 17:34:21 -0700
commitd21f22e2c07d61bf15ee3af91869901adb6f0cde (patch)
tree5277acb7de48541f5a39f57f3017a69b3ecfcec3 /core/fpdfapi/fpdf_page/cpdf_clippathdata.h
parent6296f2d501e2749d98e890ed722f923ee584c9ca (diff)
downloadpdfium-d21f22e2c07d61bf15ee3af91869901adb6f0cde.tar.xz
Make CPDF_ClipPath have a CPDF_ClipPathData rather than inheriting.
Make Data private to the ClipPath class which manages it transparently for its callers. This prevents the callers from having to remember to make a copy before dirtying the shared data, since the operations that modify state will do this under the covers for us. Review-Url: https://codereview.chromium.org/2301263003
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_clippathdata.h')
-rw-r--r--core/fpdfapi/fpdf_page/cpdf_clippathdata.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_clippathdata.h b/core/fpdfapi/fpdf_page/cpdf_clippathdata.h
deleted file mode 100644
index 70e2b1b096..0000000000
--- a/core/fpdfapi/fpdf_page/cpdf_clippathdata.h
+++ /dev/null
@@ -1,30 +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_CLIPPATHDATA_H_
-#define CORE_FPDFAPI_FPDF_PAGE_CPDF_CLIPPATHDATA_H_
-
-#include <stdint.h>
-
-#include <memory>
-#include <utility>
-#include <vector>
-
-class CPDF_Path;
-class CPDF_TextObject;
-
-class CPDF_ClipPathData {
- public:
- using PathAndTypeData = std::pair<CPDF_Path, uint8_t>;
- CPDF_ClipPathData();
- CPDF_ClipPathData(const CPDF_ClipPathData&);
- ~CPDF_ClipPathData();
-
- std::vector<PathAndTypeData> m_PathAndTypeList;
- std::vector<std::unique_ptr<CPDF_TextObject>> m_TextList;
-};
-
-#endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_CLIPPATHDATA_H_