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

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

Issue 2524493002: Clean up CFGAS_GEFont (Closed)
Patch Set: Rebase? Created 4 years, 1 month 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 | « BUILD.gn ('k') | xfa/fgas/font/cfgas_fontmgr.cpp » ('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 #include "xfa/fde/fde_gedevice.h" 7 #include "xfa/fde/fde_gedevice.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
11 11
12 #include "core/fxge/cfx_gemodule.h" 12 #include "core/fxge/cfx_gemodule.h"
13 #include "core/fxge/cfx_graphstatedata.h" 13 #include "core/fxge/cfx_graphstatedata.h"
14 #include "core/fxge/cfx_renderdevice.h" 14 #include "core/fxge/cfx_renderdevice.h"
15 #include "core/fxge/cfx_substfont.h" 15 #include "core/fxge/cfx_substfont.h"
16 #include "xfa/fde/cfde_path.h" 16 #include "xfa/fde/cfde_path.h"
17 #include "xfa/fde/fde_object.h" 17 #include "xfa/fde/fde_object.h"
18 #include "xfa/fgas/font/cfgas_fontmgr.h" 18 #include "xfa/fgas/font/cfgas_fontmgr.h"
19 #include "xfa/fgas/font/fgas_gefont.h" 19 #include "xfa/fgas/font/cfgas_gefont.h"
20 20
21 CFDE_RenderDevice::CFDE_RenderDevice(CFX_RenderDevice* pDevice, 21 CFDE_RenderDevice::CFDE_RenderDevice(CFX_RenderDevice* pDevice,
22 bool bOwnerDevice) 22 bool bOwnerDevice)
23 : m_pDevice(pDevice), m_bOwnerDevice(bOwnerDevice), m_iCharCount(0) { 23 : m_pDevice(pDevice), m_bOwnerDevice(bOwnerDevice), m_iCharCount(0) {
24 ASSERT(pDevice); 24 ASSERT(pDevice);
25 25
26 FX_RECT rt = m_pDevice->GetClipBox(); 26 FX_RECT rt = m_pDevice->GetClipBox();
27 m_rtClip.Set((FX_FLOAT)rt.left, (FX_FLOAT)rt.top, (FX_FLOAT)rt.Width(), 27 m_rtClip.Set((FX_FLOAT)rt.left, (FX_FLOAT)rt.top, (FX_FLOAT)rt.Width(),
28 (FX_FLOAT)rt.Height()); 28 (FX_FLOAT)rt.Height());
29 } 29 }
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 const CFX_Matrix* pMatrix) { 321 const CFX_Matrix* pMatrix) {
322 CFDE_Path* pGePath = (CFDE_Path*)pPath; 322 CFDE_Path* pGePath = (CFDE_Path*)pPath;
323 if (!pGePath) 323 if (!pGePath)
324 return false; 324 return false;
325 if (!pBrush) 325 if (!pBrush)
326 return false; 326 return false;
327 return m_pDevice->DrawPath(&pGePath->m_Path, pMatrix, nullptr, 327 return m_pDevice->DrawPath(&pGePath->m_Path, pMatrix, nullptr,
328 pBrush->GetColor(), 0, FXFILL_WINDING); 328 pBrush->GetColor(), 0, FXFILL_WINDING);
329 } 329 }
330 330
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | xfa/fgas/font/cfgas_fontmgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698