OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |