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

Side by Side Diff: core/fpdfapi/fpdf_render/fpdf_render.cpp

Issue 2223213002: Refactor fx_ge part 3 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase Created 4 years, 4 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 | « core/fpdfapi/fpdf_page/pageint.h ('k') | core/fpdfapi/fpdf_render/fpdf_render_cache.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 "core/fpdfapi/fpdf_render/render_int.h" 7 #include "core/fpdfapi/fpdf_render/render_int.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 12 matching lines...) Expand all
23 #include "core/fpdfapi/fpdf_page/pageint.h" 23 #include "core/fpdfapi/fpdf_page/pageint.h"
24 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 24 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
25 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" 25 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
26 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 26 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
27 #include "core/fpdfapi/fpdf_render/cpdf_pagerendercache.h" 27 #include "core/fpdfapi/fpdf_render/cpdf_pagerendercache.h"
28 #include "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h" 28 #include "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h"
29 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" 29 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h"
30 #include "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h" 30 #include "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h"
31 #include "core/fpdfapi/include/cpdf_modulemgr.h" 31 #include "core/fpdfapi/include/cpdf_modulemgr.h"
32 #include "core/fpdfdoc/include/cpdf_occontext.h" 32 #include "core/fpdfdoc/include/cpdf_occontext.h"
33 #include "core/fxge/include/cfx_fxgedevice.h"
34 #include "core/fxge/include/cfx_graphstatedata.h"
33 #include "core/fxge/include/cfx_pathdata.h" 35 #include "core/fxge/include/cfx_pathdata.h"
34 #include "core/fxge/include/fx_ge.h" 36 #include "core/fxge/include/cfx_renderdevice.h"
35 37
36 CPDF_DocRenderData::CPDF_DocRenderData(CPDF_Document* pPDFDoc) 38 CPDF_DocRenderData::CPDF_DocRenderData(CPDF_Document* pPDFDoc)
37 : m_pPDFDoc(pPDFDoc), m_pFontCache(new CFX_FontCache) {} 39 : m_pPDFDoc(pPDFDoc), m_pFontCache(new CFX_FontCache) {}
38 40
39 CPDF_DocRenderData::~CPDF_DocRenderData() { 41 CPDF_DocRenderData::~CPDF_DocRenderData() {
40 Clear(TRUE); 42 Clear(TRUE);
41 } 43 }
42 44
43 void CPDF_DocRenderData::Clear(FX_BOOL bRelease) { 45 void CPDF_DocRenderData::Clear(FX_BOOL bRelease) {
44 for (auto it = m_Type3FaceMap.begin(); it != m_Type3FaceMap.end();) { 46 for (auto it = m_Type3FaceMap.begin(); it != m_Type3FaceMap.end();) {
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 m_pDevice->StretchDIBits(m_pBitmapDevice->GetBitmap(), m_Rect.left, 1295 m_pDevice->StretchDIBits(m_pBitmapDevice->GetBitmap(), m_Rect.left,
1294 m_Rect.top, m_Rect.Width(), m_Rect.Height()); 1296 m_Rect.top, m_Rect.Width(), m_Rect.Height());
1295 } 1297 }
1296 } 1298 }
1297 1299
1298 #if defined _SKIA_SUPPORT_ 1300 #if defined _SKIA_SUPPORT_
1299 void CPDF_RenderStatus::DebugVerifyDeviceIsPreMultiplied() const { 1301 void CPDF_RenderStatus::DebugVerifyDeviceIsPreMultiplied() const {
1300 m_pDevice->DebugVerifyBitmapIsPreMultiplied(); 1302 m_pDevice->DebugVerifyBitmapIsPreMultiplied();
1301 } 1303 }
1302 #endif 1304 #endif
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/pageint.h ('k') | core/fpdfapi/fpdf_render/fpdf_render_cache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698