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

Side by Side Diff: core/fxge/ifx_renderdevicedriver.cpp

Issue 2158023002: Pdfium: Fix fonts leaking on ClosePage. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Fix xfa tests. Created 4 years, 3 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
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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/fxge/include/ifx_renderdevicedriver.h" 7 #include "core/fxge/include/ifx_renderdevicedriver.h"
8 8
9 #include "core/fxcrt/include/fx_coordinates.h" 9 #include "core/fxcrt/include/fx_coordinates.h"
10 #include "core/fxge/include/cfx_pathdata.h" 10 #include "core/fxge/include/cfx_pathdata.h"
11 #include "core/fxge/include/cfx_renderdevice.h" 11 #include "core/fxge/include/cfx_renderdevice.h"
12 12
13 class CFX_FontCache;
14
15 IFX_RenderDeviceDriver::~IFX_RenderDeviceDriver() {} 13 IFX_RenderDeviceDriver::~IFX_RenderDeviceDriver() {}
16 14
17 CFX_Matrix IFX_RenderDeviceDriver::GetCTM() const { 15 CFX_Matrix IFX_RenderDeviceDriver::GetCTM() const {
18 return CFX_Matrix(); 16 return CFX_Matrix();
19 } 17 }
20 18
21 FX_BOOL IFX_RenderDeviceDriver::StartRendering() { 19 FX_BOOL IFX_RenderDeviceDriver::StartRendering() {
22 return TRUE; 20 return TRUE;
23 } 21 }
24 22
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 FX_BOOL IFX_RenderDeviceDriver::ContinueDIBits(void* handle, 61 FX_BOOL IFX_RenderDeviceDriver::ContinueDIBits(void* handle,
64 IFX_Pause* pPause) { 62 IFX_Pause* pPause) {
65 return FALSE; 63 return FALSE;
66 } 64 }
67 65
68 void IFX_RenderDeviceDriver::CancelDIBits(void* handle) {} 66 void IFX_RenderDeviceDriver::CancelDIBits(void* handle) {}
69 67
70 FX_BOOL IFX_RenderDeviceDriver::DrawDeviceText(int nChars, 68 FX_BOOL IFX_RenderDeviceDriver::DrawDeviceText(int nChars,
71 const FXTEXT_CHARPOS* pCharPos, 69 const FXTEXT_CHARPOS* pCharPos,
72 CFX_Font* pFont, 70 CFX_Font* pFont,
73 CFX_FontCache* pCache,
74 const CFX_Matrix* pObject2Device, 71 const CFX_Matrix* pObject2Device,
75 FX_FLOAT font_size, 72 FX_FLOAT font_size,
76 uint32_t color) { 73 uint32_t color) {
77 return FALSE; 74 return FALSE;
78 } 75 }
79 76
80 void* IFX_RenderDeviceDriver::GetPlatformSurface() const { 77 void* IFX_RenderDeviceDriver::GetPlatformSurface() const {
81 return nullptr; 78 return nullptr;
82 } 79 }
83 80
(...skipping 12 matching lines...) Expand all
96 } 93 }
97 94
98 bool IFX_RenderDeviceDriver::SetBitsWithMask(const CFX_DIBSource* pBitmap, 95 bool IFX_RenderDeviceDriver::SetBitsWithMask(const CFX_DIBSource* pBitmap,
99 const CFX_DIBSource* pMask, 96 const CFX_DIBSource* pMask,
100 int left, 97 int left,
101 int top, 98 int top,
102 int bitmap_alpha, 99 int bitmap_alpha,
103 int blend_type) { 100 int blend_type) {
104 return false; 101 return false;
105 } 102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698