summaryrefslogtreecommitdiff
path: root/core/fpdfapi/font
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-01-12 21:21:51 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-12 21:21:51 +0000
commit14e77443e92ce3fdf1cebe85f8f5c8fe705a1558 (patch)
tree6663d55d22cc13f72d26941f2dfb4916be00a537 /core/fpdfapi/font
parent9baf31f8c38e1c5266609e184cc07e369b744760 (diff)
downloadpdfium-14e77443e92ce3fdf1cebe85f8f5c8fe705a1558.tar.xz
Move some RetainPtr getters/setters out of headers.
RetainPtr operations are not trivial. Change-Id: Ic106ada69d1c023a8132a2a59db17d550fd81fa0 Reviewed-on: https://pdfium-review.googlesource.com/22911 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/font')
-rw-r--r--core/fpdfapi/font/cpdf_type3char.cpp9
-rw-r--r--core/fpdfapi/font/cpdf_type3char.h4
2 files changed, 11 insertions, 2 deletions
diff --git a/core/fpdfapi/font/cpdf_type3char.cpp b/core/fpdfapi/font/cpdf_type3char.cpp
index f1448ab751..8a89582b00 100644
--- a/core/fpdfapi/font/cpdf_type3char.cpp
+++ b/core/fpdfapi/font/cpdf_type3char.cpp
@@ -12,6 +12,7 @@
#include "core/fpdfapi/page/cpdf_image.h"
#include "core/fpdfapi/page/cpdf_imageobject.h"
#include "core/fpdfapi/page/cpdf_pageobject.h"
+#include "core/fxge/dib/cfx_dibitmap.h"
#include "core/fxge/fx_dib.h"
namespace {
@@ -93,3 +94,11 @@ void CPDF_Type3Char::Transform(const CFX_Matrix& matrix) {
void CPDF_Type3Char::ResetForm() {
m_pForm.reset();
}
+
+RetainPtr<CFX_DIBitmap> CPDF_Type3Char::GetBitmap() {
+ return m_pBitmap;
+}
+
+const RetainPtr<CFX_DIBitmap>& CPDF_Type3Char::GetBitmap() const {
+ return m_pBitmap;
+}
diff --git a/core/fpdfapi/font/cpdf_type3char.h b/core/fpdfapi/font/cpdf_type3char.h
index 2aec16a0eb..c9c5555cf4 100644
--- a/core/fpdfapi/font/cpdf_type3char.h
+++ b/core/fpdfapi/font/cpdf_type3char.h
@@ -31,8 +31,8 @@ class CPDF_Type3Char {
void Transform(const CFX_Matrix& matrix);
void ResetForm();
- RetainPtr<CFX_DIBitmap> GetBitmap() { return m_pBitmap; }
- const RetainPtr<CFX_DIBitmap>& GetBitmap() const { return m_pBitmap; }
+ RetainPtr<CFX_DIBitmap> GetBitmap();
+ const RetainPtr<CFX_DIBitmap>& GetBitmap() const;
const CPDF_Form* form() const { return m_pForm.get(); }
CPDF_Form* form() { return m_pForm.get(); }