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

Side by Side Diff: core/src/fxge/agg/agg23/fx_agg_driver.cpp

Issue 801913002: Simplify PDFium by removing code that's not used in the open source repo. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years 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 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 "../../../../include/fxge/fx_ge.h" 7 #include "../../../../include/fxge/fx_ge.h"
8 #include "../../dib/dib_int.h" 8 #include "../../dib/dib_int.h"
9 #include "../../ge/text_int.h" 9 #include "../../ge/text_int.h"
10 #include "../../../../include/fxcodec/fx_codec.h" 10 #include "../../../../include/fxcodec/fx_codec.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 { 207 {
208 if (m_pClipRgn) { 208 if (m_pClipRgn) {
209 delete m_pClipRgn; 209 delete m_pClipRgn;
210 } 210 }
211 for (int i = 0; i < m_StateStack.GetSize(); i ++) 211 for (int i = 0; i < m_StateStack.GetSize(); i ++)
212 if (m_StateStack[i]) { 212 if (m_StateStack[i]) {
213 delete (CFX_ClipRgn*)m_StateStack[i]; 213 delete (CFX_ClipRgn*)m_StateStack[i];
214 } 214 }
215 DestroyPlatform(); 215 DestroyPlatform();
216 } 216 }
217 #if ((_FXM_PLATFORM_ != _FXM_PLATFORM_APPLE_)|| defined(_FPDFAPI_MINI_)) 217 #if _FXM_PLATFORM_ != _FXM_PLATFORM_APPLE_
Tom Sepez 2014/12/12 22:36:11 nit: extra space before !=
218 void CFX_AggDeviceDriver::InitPlatform() 218 void CFX_AggDeviceDriver::InitPlatform()
219 { 219 {
220 } 220 }
221 void CFX_AggDeviceDriver::DestroyPlatform() 221 void CFX_AggDeviceDriver::DestroyPlatform()
222 { 222 {
223 } 223 }
224 FX_BOOL CFX_AggDeviceDriver::DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pC harPos, CFX_Font* pFont, 224 FX_BOOL CFX_AggDeviceDriver::DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pC harPos, CFX_Font* pFont,
225 CFX_FontCache* pCache, const CFX_AffineMatrix* pObject2Device, FX_FLOAT font_size, FX_DWORD color, 225 CFX_FontCache* pCache, const CFX_AffineMatrix* pObject2Device, FX_FLOAT font_size, FX_DWORD color,
226 int alpha_flag, void* pIccTransform) 226 int alpha_flag, void* pIccTransform)
227 { 227 {
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 } 1622 }
1623 SetDeviceDriver(pDriver); 1623 SetDeviceDriver(pDriver);
1624 return TRUE; 1624 return TRUE;
1625 } 1625 }
1626 CFX_FxgeDevice::~CFX_FxgeDevice() 1626 CFX_FxgeDevice::~CFX_FxgeDevice()
1627 { 1627 {
1628 if (m_bOwnedBitmap && GetBitmap()) { 1628 if (m_bOwnedBitmap && GetBitmap()) {
1629 delete GetBitmap(); 1629 delete GetBitmap();
1630 } 1630 }
1631 } 1631 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698