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 "core/fxge/include/fx_ge.h" | 5 #include "core/fxge/include/fx_ge.h" |
6 | 6 |
7 #if defined(_SKIA_SUPPORT_) | 7 #if defined(_SKIA_SUPPORT_) |
8 #include "core/fxcodec/include/fx_codec.h" | 8 #include "core/fxcodec/include/fx_codec.h" |
9 | 9 |
10 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" | 10 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 case FXDC_DITHER_BITS: | 597 case FXDC_DITHER_BITS: |
598 return m_ditherBits; | 598 return m_ditherBits; |
599 } | 599 } |
600 return 0; | 600 return 0; |
601 } | 601 } |
602 | 602 |
603 void CFX_SkiaDeviceDriver::SaveState() { | 603 void CFX_SkiaDeviceDriver::SaveState() { |
604 m_pCanvas->save(); | 604 m_pCanvas->save(); |
605 } | 605 } |
606 | 606 |
607 void CFX_SkiaDeviceDriver::RestoreState(FX_BOOL bKeepSaved) { | 607 void CFX_SkiaDeviceDriver::RestoreState(bool bKeepSaved) { |
608 m_pCanvas->restore(); | 608 m_pCanvas->restore(); |
609 if (bKeepSaved) | 609 if (bKeepSaved) |
610 m_pCanvas->save(); | 610 m_pCanvas->save(); |
611 } | 611 } |
612 | 612 |
613 FX_BOOL CFX_SkiaDeviceDriver::SetClip_PathFill( | 613 FX_BOOL CFX_SkiaDeviceDriver::SetClip_PathFill( |
614 const CFX_PathData* pPathData, // path info | 614 const CFX_PathData* pPathData, // path info |
615 const CFX_Matrix* pObject2Device, // flips object's y-axis | 615 const CFX_Matrix* pObject2Device, // flips object's y-axis |
616 int fill_mode // fill mode, WINDING or ALTERNATE | 616 int fill_mode // fill mode, WINDING or ALTERNATE |
617 ) { | 617 ) { |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 SetDeviceDriver(pDriver); | 1127 SetDeviceDriver(pDriver); |
1128 return true; | 1128 return true; |
1129 } | 1129 } |
1130 | 1130 |
1131 CFX_FxgeDevice::~CFX_FxgeDevice() { | 1131 CFX_FxgeDevice::~CFX_FxgeDevice() { |
1132 if (m_bOwnedBitmap && GetBitmap()) | 1132 if (m_bOwnedBitmap && GetBitmap()) |
1133 delete GetBitmap(); | 1133 delete GetBitmap(); |
1134 } | 1134 } |
1135 | 1135 |
1136 #endif | 1136 #endif |
OLD | NEW |