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/include/fxge/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; |
11 m_pBitmap = NULL; | 11 m_pBitmap = NULL; |
12 } | 12 } |
13 CFX_RenderDevice::~CFX_RenderDevice() { | 13 CFX_RenderDevice::~CFX_RenderDevice() { |
14 delete m_pDeviceDriver; | 14 delete m_pDeviceDriver; |
15 } | 15 } |
16 void CFX_RenderDevice::SetDeviceDriver(IFX_RenderDeviceDriver* pDriver) { | 16 void CFX_RenderDevice::SetDeviceDriver(IFX_RenderDeviceDriver* pDriver) { |
17 delete m_pDeviceDriver; | 17 delete m_pDeviceDriver; |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 return m_pDeviceDriver->StartDIBits(pBitmap, bitmap_alpha, argb, pMatrix, | 488 return m_pDeviceDriver->StartDIBits(pBitmap, bitmap_alpha, argb, pMatrix, |
489 flags, handle, alpha_flag, pIccTransform, | 489 flags, handle, alpha_flag, pIccTransform, |
490 blend_mode); | 490 blend_mode); |
491 } | 491 } |
492 FX_BOOL CFX_RenderDevice::ContinueDIBits(void* handle, IFX_Pause* pPause) { | 492 FX_BOOL CFX_RenderDevice::ContinueDIBits(void* handle, IFX_Pause* pPause) { |
493 return m_pDeviceDriver->ContinueDIBits(handle, pPause); | 493 return m_pDeviceDriver->ContinueDIBits(handle, pPause); |
494 } | 494 } |
495 void CFX_RenderDevice::CancelDIBits(void* handle) { | 495 void CFX_RenderDevice::CancelDIBits(void* handle) { |
496 m_pDeviceDriver->CancelDIBits(handle); | 496 m_pDeviceDriver->CancelDIBits(handle); |
497 } | 497 } |
OLD | NEW |