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

Side by Side Diff: core/fxge/skia/fx_skia_device.cpp

Issue 2009803003: Remove default argument from RestoreState() methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@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
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 #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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 case FXDC_DITHER_BITS: 607 case FXDC_DITHER_BITS:
608 return m_ditherBits; 608 return m_ditherBits;
609 } 609 }
610 return 0; 610 return 0;
611 } 611 }
612 612
613 void CFX_SkiaDeviceDriver::SaveState() { 613 void CFX_SkiaDeviceDriver::SaveState() {
614 m_pCanvas->save(); 614 m_pCanvas->save();
615 } 615 }
616 616
617 void CFX_SkiaDeviceDriver::RestoreState(FX_BOOL bKeepSaved) { 617 void CFX_SkiaDeviceDriver::RestoreState(bool bKeepSaved) {
618 m_pCanvas->restore(); 618 m_pCanvas->restore();
619 if (bKeepSaved) 619 if (bKeepSaved)
620 m_pCanvas->save(); 620 m_pCanvas->save();
621 } 621 }
622 622
623 FX_BOOL CFX_SkiaDeviceDriver::SetClip_PathFill( 623 FX_BOOL CFX_SkiaDeviceDriver::SetClip_PathFill(
624 const CFX_PathData* pPathData, // path info 624 const CFX_PathData* pPathData, // path info
625 const CFX_Matrix* pObject2Device, // flips object's y-axis 625 const CFX_Matrix* pObject2Device, // flips object's y-axis
626 int fill_mode // fill mode, WINDING or ALTERNATE 626 int fill_mode // fill mode, WINDING or ALTERNATE
627 ) { 627 ) {
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 SetDeviceDriver(pDriver); 1137 SetDeviceDriver(pDriver);
1138 return true; 1138 return true;
1139 } 1139 }
1140 1140
1141 CFX_FxgeDevice::~CFX_FxgeDevice() { 1141 CFX_FxgeDevice::~CFX_FxgeDevice() {
1142 if (m_bOwnedBitmap && GetBitmap()) 1142 if (m_bOwnedBitmap && GetBitmap())
1143 delete GetBitmap(); 1143 delete GetBitmap();
1144 } 1144 }
1145 1145
1146 #endif 1146 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698