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

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

Issue 1975143002: allow Skia to be the default graphics engine (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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 | « no previous file | core/fxge/include/fx_ge.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 #include "core/fxge/agg/fx_agg_driver.h" 7 #include "core/fxge/agg/fx_agg_driver.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 1776 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 return ((CFX_ImageRenderer*)pHandle)->Continue(pPause); 1787 return ((CFX_ImageRenderer*)pHandle)->Continue(pPause);
1788 } 1788 }
1789 1789
1790 void CFX_AggDeviceDriver::CancelDIBits(void* pHandle) { 1790 void CFX_AggDeviceDriver::CancelDIBits(void* pHandle) {
1791 if (!m_pBitmap->GetBuffer()) { 1791 if (!m_pBitmap->GetBuffer()) {
1792 return; 1792 return;
1793 } 1793 }
1794 delete (CFX_ImageRenderer*)pHandle; 1794 delete (CFX_ImageRenderer*)pHandle;
1795 } 1795 }
1796 1796
1797 #ifndef _SKIA_SUPPORT_
1797 CFX_FxgeDevice::CFX_FxgeDevice() { 1798 CFX_FxgeDevice::CFX_FxgeDevice() {
1798 m_bOwnedBitmap = FALSE; 1799 m_bOwnedBitmap = FALSE;
1799 } 1800 }
1800 1801
1801 bool CFX_FxgeDevice::Attach(CFX_DIBitmap* pBitmap, 1802 bool CFX_FxgeDevice::Attach(CFX_DIBitmap* pBitmap,
1802 int dither_bits, 1803 int dither_bits,
1803 bool bRgbByteOrder, 1804 bool bRgbByteOrder,
1804 CFX_DIBitmap* pOriDevice, 1805 CFX_DIBitmap* pOriDevice,
1805 bool bGroupKnockout) { 1806 bool bGroupKnockout) {
1806 if (!pBitmap) { 1807 if (!pBitmap) {
(...skipping 22 matching lines...) Expand all
1829 new CFX_AggDeviceDriver(pBitmap, dither_bits, FALSE, pOriDevice, FALSE); 1830 new CFX_AggDeviceDriver(pBitmap, dither_bits, FALSE, pOriDevice, FALSE);
1830 SetDeviceDriver(pDriver); 1831 SetDeviceDriver(pDriver);
1831 return true; 1832 return true;
1832 } 1833 }
1833 1834
1834 CFX_FxgeDevice::~CFX_FxgeDevice() { 1835 CFX_FxgeDevice::~CFX_FxgeDevice() {
1835 if (m_bOwnedBitmap) { 1836 if (m_bOwnedBitmap) {
1836 delete GetBitmap(); 1837 delete GetBitmap();
1837 } 1838 }
1838 } 1839 }
1840 #endif
OLDNEW
« no previous file with comments | « no previous file | core/fxge/include/fx_ge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698