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

Side by Side Diff: xfa/fde/fde_gedevice.h

Issue 1960673003: Replace some calls to Release() with direct delete, part 1. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Another unique_ptr. Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « xfa/fde/css/fde_csssyntax.h ('k') | xfa/fde/fde_iterator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FDE_FDE_GEDEVICE_H_ 7 #ifndef XFA_FDE_FDE_GEDEVICE_H_
8 #define XFA_FDE_FDE_GEDEVICE_H_ 8 #define XFA_FDE_FDE_GEDEVICE_H_
9 9
10 #include "core/fxge/include/fx_ge.h" 10 #include "core/fxge/include/fx_ge.h"
11 #include "xfa/fgas/crt/fgas_memory.h" 11 #include "xfa/fgas/crt/fgas_memory.h"
12 12
13 typedef struct FDE_HDEVICESTATE_ { void* pData; } * FDE_HDEVICESTATE; 13 typedef struct FDE_HDEVICESTATE_ { void* pData; } * FDE_HDEVICESTATE;
14 14
15 class CFDE_Brush; 15 class CFDE_Brush;
16 class CFDE_Path; 16 class CFDE_Path;
17 class CFDE_Pen; 17 class CFDE_Pen;
18 class CFX_RenderDevice; 18 class CFX_RenderDevice;
19 class IFX_Font; 19 class IFX_Font;
20 20
21 class CFDE_RenderDevice : public CFX_Target { 21 class CFDE_RenderDevice : public CFX_Target {
22 public: 22 public:
23 CFDE_RenderDevice(CFX_RenderDevice* pDevice, FX_BOOL bOwnerDevice); 23 CFDE_RenderDevice(CFX_RenderDevice* pDevice, FX_BOOL bOwnerDevice);
24 ~CFDE_RenderDevice(); 24 ~CFDE_RenderDevice() override;
25
26 void Release() { delete this; }
27 25
28 int32_t GetWidth() const; 26 int32_t GetWidth() const;
29 int32_t GetHeight() const; 27 int32_t GetHeight() const;
30 FDE_HDEVICESTATE SaveState(); 28 FDE_HDEVICESTATE SaveState();
31 void RestoreState(FDE_HDEVICESTATE hState); 29 void RestoreState(FDE_HDEVICESTATE hState);
32 FX_BOOL SetClipPath(const CFDE_Path* pClip); 30 FX_BOOL SetClipPath(const CFDE_Path* pClip);
33 CFDE_Path* GetClipPath() const; 31 CFDE_Path* GetClipPath() const;
34 FX_BOOL SetClipRect(const CFX_RectF& rtClip); 32 FX_BOOL SetClipRect(const CFX_RectF& rtClip);
35 const CFX_RectF& GetClipRect(); 33 const CFX_RectF& GetClipRect();
36 34
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 CFX_GraphStateData& graphState); 120 CFX_GraphStateData& graphState);
123 121
124 CFX_RenderDevice* m_pDevice; 122 CFX_RenderDevice* m_pDevice;
125 CFX_RectF m_rtClip; 123 CFX_RectF m_rtClip;
126 FX_BOOL m_bOwnerDevice; 124 FX_BOOL m_bOwnerDevice;
127 FXTEXT_CHARPOS* m_pCharPos; 125 FXTEXT_CHARPOS* m_pCharPos;
128 int32_t m_iCharCount; 126 int32_t m_iCharCount;
129 }; 127 };
130 128
131 #endif // XFA_FDE_FDE_GEDEVICE_H_ 129 #endif // XFA_FDE_FDE_GEDEVICE_H_
OLDNEW
« no previous file with comments | « xfa/fde/css/fde_csssyntax.h ('k') | xfa/fde/fde_iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698