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

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: rebase Created 4 years, 6 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
« no previous file with comments | « core/fxge/skia/fx_skia_device.h ('k') | core/fxge/win32/fx_win32_device.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « core/fxge/skia/fx_skia_device.h ('k') | core/fxge/win32/fx_win32_device.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698