| 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 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } else { // hairline | 110 } else { // hairline |
| 111 if (paint->isAntiAlias()) { | 111 if (paint->isAntiAlias()) { |
| 112 proc = SkScan::AntiHairPath; | 112 proc = SkScan::AntiHairPath; |
| 113 } else { | 113 } else { |
| 114 proc = SkScan::HairPath; | 114 proc = SkScan::HairPath; |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 proc(*devPathPtr, rect, blitter); | 117 proc(*devPathPtr, rect, blitter); |
| 118 } | 118 } |
| 119 | 119 |
| 120 class CSkia_PathData : public CFX_Object | 120 class CSkia_PathData |
| 121 { | 121 { |
| 122 public: | 122 public: |
| 123 CSkia_PathData() {} | 123 CSkia_PathData() {} |
| 124 ~CSkia_PathData() {} | 124 ~CSkia_PathData() {} |
| 125 SkPath m_PathData; | 125 SkPath m_PathData; |
| 126 | 126 |
| 127 void BuildPath(const CFX_PathData* pPathData, const C
FX_AffineMatrix* pObject2Device); | 127 void BuildPath(const CFX_PathData* pPathData, const C
FX_AffineMatrix* pObject2Device); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 void CSkia_PathData::BuildPath(const CFX_PathData* pPathData, const CFX_AffineMa
trix* pObject2Device) | 130 void CSkia_PathData::BuildPath(const CFX_PathData* pPathData, const CFX_AffineMa
trix* pObject2Device) |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 CFX_SkiaDeviceDriver* pDriver = FX_NEW CFX_SkiaDeviceDriver(pBitmap, di
ther_bits, FALSE, pOriDevice, FALSE); | 522 CFX_SkiaDeviceDriver* pDriver = FX_NEW CFX_SkiaDeviceDriver(pBitmap, di
ther_bits, FALSE, pOriDevice, FALSE); |
| 523 SetDeviceDriver(pDriver); | 523 SetDeviceDriver(pDriver); |
| 524 return TRUE; | 524 return TRUE; |
| 525 } | 525 } |
| 526 CFX_SkiaDevice::~CFX_SkiaDevice() | 526 CFX_SkiaDevice::~CFX_SkiaDevice() |
| 527 { | 527 { |
| 528 if (m_bOwnedBitmap && GetBitmap()) delete GetBitmap(); | 528 if (m_bOwnedBitmap && GetBitmap()) delete GetBitmap(); |
| 529 } | 529 } |
| 530 | 530 |
| 531 #endif | 531 #endif |
| OLD | NEW |