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 // 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 Loading... |
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 Loading... |
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 } |
OLD | NEW |