summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/cpdf_pattern.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-22 13:42:34 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-22 13:42:34 -0700
commitfe0179ded8202939ea4f2b92a879b8dede7821ea (patch)
tree0d8dc52910041d8da0f2039018403dedf3c7332e /core/fpdfapi/fpdf_page/cpdf_pattern.h
parenta939bfe3e102bfb28b4e8a5d951333d16badf80b (diff)
downloadpdfium-fe0179ded8202939ea4f2b92a879b8dede7821ea.tar.xz
Rename CPDF_CountedObject to CFX_WeakPtr::Handlechromium/2869
This better describes its purpose, and reduces confusion with the CFX_CountRef class, which is unrelated. The WeakPtr class itself that manipulates handles is NYI. Review-Url: https://codereview.chromium.org/2366673003
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_pattern.h')
-rw-r--r--core/fpdfapi/fpdf_page/cpdf_pattern.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_pattern.h b/core/fpdfapi/fpdf_page/cpdf_pattern.h
index 983c9eab3f..f18a32d4d3 100644
--- a/core/fpdfapi/fpdf_page/cpdf_pattern.h
+++ b/core/fpdfapi/fpdf_page/cpdf_pattern.h
@@ -7,6 +7,7 @@
#ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_PATTERN_H_
#define CORE_FPDFAPI_FPDF_PAGE_CPDF_PATTERN_H_
+#include "core/fxcrt/include/cfx_weak_ptr.h"
#include "core/fxcrt/include/fx_coordinates.h"
#include "core/fxcrt/include/fx_system.h"
@@ -42,4 +43,6 @@ class CPDF_Pattern {
const CFX_Matrix m_ParentMatrix;
};
+using CPDF_CountedPattern = CFX_WeakPtr<CPDF_Pattern>::Handle;
+
#endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_PATTERN_H_