From 18125c7d2a73fad9f0b545efc8604025088167e3 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 21 Aug 2018 21:10:51 +0000 Subject: Use UnownedPtr<> in JBig2_GrrdProc.h. Change-Id: Ie3502443b801ae4af6e4c9e533f28d102703104c Reviewed-on: https://pdfium-review.googlesource.com/40912 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fxcodec/jbig2/JBig2_GrrdProc.cpp | 4 ++++ core/fxcodec/jbig2/JBig2_GrrdProc.h | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'core/fxcodec/jbig2') diff --git a/core/fxcodec/jbig2/JBig2_GrrdProc.cpp b/core/fxcodec/jbig2/JBig2_GrrdProc.cpp index 5542ec53ed..e67377622b 100644 --- a/core/fxcodec/jbig2/JBig2_GrrdProc.cpp +++ b/core/fxcodec/jbig2/JBig2_GrrdProc.cpp @@ -13,6 +13,10 @@ #include "core/fxcodec/jbig2/JBig2_Image.h" #include "third_party/base/ptr_util.h" +CJBig2_GRRDProc::CJBig2_GRRDProc() = default; + +CJBig2_GRRDProc::~CJBig2_GRRDProc() = default; + std::unique_ptr CJBig2_GRRDProc::Decode( CJBig2_ArithDecoder* pArithDecoder, JBig2ArithCtx* grContext) { diff --git a/core/fxcodec/jbig2/JBig2_GrrdProc.h b/core/fxcodec/jbig2/JBig2_GrrdProc.h index 6ec3dd0b05..ec178a24c2 100644 --- a/core/fxcodec/jbig2/JBig2_GrrdProc.h +++ b/core/fxcodec/jbig2/JBig2_GrrdProc.h @@ -10,6 +10,7 @@ #include #include "core/fxcrt/fx_system.h" +#include "core/fxcrt/unowned_ptr.h" class CJBig2_ArithDecoder; class CJBig2_Image; @@ -17,16 +18,19 @@ struct JBig2ArithCtx; class CJBig2_GRRDProc { public: + CJBig2_GRRDProc(); + ~CJBig2_GRRDProc(); + std::unique_ptr Decode(CJBig2_ArithDecoder* pArithDecoder, JBig2ArithCtx* grContext); + bool GRTEMPLATE; + bool TPGRON; uint32_t GRW; uint32_t GRH; - bool GRTEMPLATE; - CJBig2_Image* GRREFERENCE; int32_t GRREFERENCEDX; int32_t GRREFERENCEDY; - bool TPGRON; + UnownedPtr GRREFERENCE; int8_t GRAT[4]; private: -- cgit v1.2.3