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

Side by Side Diff: core/fxge/ge/fx_ge_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/apple/fx_quartz_device.cpp ('k') | core/fxge/ge/fx_ge_ps.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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "core/fxge/include/fx_ge.h" 7 #include "core/fxge/include/fx_ge.h"
8 8
9 CFX_RenderDevice::CFX_RenderDevice() { 9 CFX_RenderDevice::CFX_RenderDevice() {
10 m_pDeviceDriver = NULL; 10 m_pDeviceDriver = NULL;
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 FX_BOOL CFX_RenderDevice::StartRendering() { 34 FX_BOOL CFX_RenderDevice::StartRendering() {
35 return m_pDeviceDriver->StartRendering(); 35 return m_pDeviceDriver->StartRendering();
36 } 36 }
37 void CFX_RenderDevice::EndRendering() { 37 void CFX_RenderDevice::EndRendering() {
38 m_pDeviceDriver->EndRendering(); 38 m_pDeviceDriver->EndRendering();
39 } 39 }
40 void CFX_RenderDevice::SaveState() { 40 void CFX_RenderDevice::SaveState() {
41 m_pDeviceDriver->SaveState(); 41 m_pDeviceDriver->SaveState();
42 } 42 }
43 void CFX_RenderDevice::RestoreState(FX_BOOL bKeepSaved) { 43
44 void CFX_RenderDevice::RestoreState(bool bKeepSaved) {
44 m_pDeviceDriver->RestoreState(bKeepSaved); 45 m_pDeviceDriver->RestoreState(bKeepSaved);
45 UpdateClipBox(); 46 UpdateClipBox();
46 } 47 }
48
47 int CFX_RenderDevice::GetDeviceCaps(int caps_id) const { 49 int CFX_RenderDevice::GetDeviceCaps(int caps_id) const {
48 return m_pDeviceDriver->GetDeviceCaps(caps_id); 50 return m_pDeviceDriver->GetDeviceCaps(caps_id);
49 } 51 }
50 CFX_Matrix CFX_RenderDevice::GetCTM() const { 52 CFX_Matrix CFX_RenderDevice::GetCTM() const {
51 return m_pDeviceDriver->GetCTM(); 53 return m_pDeviceDriver->GetCTM();
52 } 54 }
53 FX_BOOL CFX_RenderDevice::CreateCompatibleBitmap(CFX_DIBitmap* pDIB, 55 FX_BOOL CFX_RenderDevice::CreateCompatibleBitmap(CFX_DIBitmap* pDIB,
54 int width, 56 int width,
55 int height) const { 57 int height) const {
56 if (m_RenderCaps & FXRC_CMYK_OUTPUT) { 58 if (m_RenderCaps & FXRC_CMYK_OUTPUT) {
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 return m_pDeviceDriver->StartDIBits(pBitmap, bitmap_alpha, argb, pMatrix, 490 return m_pDeviceDriver->StartDIBits(pBitmap, bitmap_alpha, argb, pMatrix,
489 flags, handle, alpha_flag, pIccTransform, 491 flags, handle, alpha_flag, pIccTransform,
490 blend_mode); 492 blend_mode);
491 } 493 }
492 FX_BOOL CFX_RenderDevice::ContinueDIBits(void* handle, IFX_Pause* pPause) { 494 FX_BOOL CFX_RenderDevice::ContinueDIBits(void* handle, IFX_Pause* pPause) {
493 return m_pDeviceDriver->ContinueDIBits(handle, pPause); 495 return m_pDeviceDriver->ContinueDIBits(handle, pPause);
494 } 496 }
495 void CFX_RenderDevice::CancelDIBits(void* handle) { 497 void CFX_RenderDevice::CancelDIBits(void* handle) {
496 m_pDeviceDriver->CancelDIBits(handle); 498 m_pDeviceDriver->CancelDIBits(handle);
497 } 499 }
OLDNEW
« no previous file with comments | « core/fxge/apple/fx_quartz_device.cpp ('k') | core/fxge/ge/fx_ge_ps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698