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 #include "../../../include/fxge/fx_ge.h" | 5 #include "../../../include/fxge/fx_ge.h" |
6 //#define _SKIA_SUPPORT_ | 6 //#define _SKIA_SUPPORT_ |
7 #if defined(_SKIA_SUPPORT_) | 7 #if defined(_SKIA_SUPPORT_) |
8 #include "../../../include/fxcodec/fx_codec.h" | 8 #include "../../../include/fxcodec/fx_codec.h" |
9 | 9 |
10 //#define _FOXIT_DEBUG_ | 10 //#define _FOXIT_DEBUG_ |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 CFX_SkiaDeviceDriver* pDriver = | 619 CFX_SkiaDeviceDriver* pDriver = |
620 new CFX_SkiaDeviceDriver(pBitmap, dither_bits, FALSE, pOriDevice, FALSE); | 620 new CFX_SkiaDeviceDriver(pBitmap, dither_bits, FALSE, pOriDevice, FALSE); |
621 SetDeviceDriver(pDriver); | 621 SetDeviceDriver(pDriver); |
622 return TRUE; | 622 return TRUE; |
623 } | 623 } |
624 CFX_SkiaDevice::~CFX_SkiaDevice() { | 624 CFX_SkiaDevice::~CFX_SkiaDevice() { |
625 if (m_bOwnedBitmap && GetBitmap()) | 625 if (m_bOwnedBitmap && GetBitmap()) |
626 delete GetBitmap(); | 626 delete GetBitmap(); |
627 } | 627 } |
628 | 628 |
629 #endif | 629 #endif |
OLD | NEW |