| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/ifx_renderdevicedriver.h" | 7 #include "core/fxge/ifx_renderdevicedriver.h" |
| 8 | 8 |
| 9 #include "core/fxcrt/fx_coordinates.h" | 9 #include "core/fxcrt/fx_coordinates.h" |
| 10 #include "core/fxge/cfx_pathdata.h" | 10 #include "core/fxge/cfx_pathdata.h" |
| 11 #include "core/fxge/cfx_renderdevice.h" | 11 #include "core/fxge/cfx_renderdevice.h" |
| 12 | 12 |
| 13 IFX_RenderDeviceDriver::~IFX_RenderDeviceDriver() {} | 13 IFX_RenderDeviceDriver::~IFX_RenderDeviceDriver() {} |
| 14 | 14 |
| 15 CFX_Matrix IFX_RenderDeviceDriver::GetCTM() const { | 15 CFX_Matrix IFX_RenderDeviceDriver::GetCTM() const { |
| 16 return CFX_Matrix(); | 16 return CFX_Matrix(); |
| 17 } | 17 } |
| 18 | 18 |
| 19 FX_BOOL IFX_RenderDeviceDriver::StartRendering() { | 19 bool IFX_RenderDeviceDriver::StartRendering() { |
| 20 return TRUE; | 20 return true; |
| 21 } | 21 } |
| 22 | 22 |
| 23 void IFX_RenderDeviceDriver::EndRendering() {} | 23 void IFX_RenderDeviceDriver::EndRendering() {} |
| 24 | 24 |
| 25 FX_BOOL IFX_RenderDeviceDriver::SetClip_PathStroke( | 25 bool IFX_RenderDeviceDriver::SetClip_PathStroke( |
| 26 const CFX_PathData* pPathData, | 26 const CFX_PathData* pPathData, |
| 27 const CFX_Matrix* pObject2Device, | 27 const CFX_Matrix* pObject2Device, |
| 28 const CFX_GraphStateData* pGraphState) { | 28 const CFX_GraphStateData* pGraphState) { |
| 29 return FALSE; | 29 return false; |
| 30 } | 30 } |
| 31 | 31 |
| 32 FX_BOOL IFX_RenderDeviceDriver::SetPixel(int x, int y, uint32_t color) { | 32 bool IFX_RenderDeviceDriver::SetPixel(int x, int y, uint32_t color) { |
| 33 return FALSE; | 33 return false; |
| 34 } | 34 } |
| 35 | 35 |
| 36 FX_BOOL IFX_RenderDeviceDriver::FillRectWithBlend(const FX_RECT* pRect, | 36 bool IFX_RenderDeviceDriver::FillRectWithBlend(const FX_RECT* pRect, |
| 37 uint32_t fill_color, | 37 uint32_t fill_color, |
| 38 int blend_type) { | 38 int blend_type) { |
| 39 return FALSE; | 39 return false; |
| 40 } | 40 } |
| 41 | 41 |
| 42 FX_BOOL IFX_RenderDeviceDriver::DrawCosmeticLine(FX_FLOAT x1, | 42 bool IFX_RenderDeviceDriver::DrawCosmeticLine(FX_FLOAT x1, |
| 43 FX_FLOAT y1, | 43 FX_FLOAT y1, |
| 44 FX_FLOAT x2, | 44 FX_FLOAT x2, |
| 45 FX_FLOAT y2, | 45 FX_FLOAT y2, |
| 46 uint32_t color, | 46 uint32_t color, |
| 47 int blend_type) { | 47 int blend_type) { |
| 48 return FALSE; | 48 return false; |
| 49 } | 49 } |
| 50 | 50 |
| 51 FX_BOOL IFX_RenderDeviceDriver::GetDIBits(CFX_DIBitmap* pBitmap, | 51 bool IFX_RenderDeviceDriver::GetDIBits(CFX_DIBitmap* pBitmap, |
| 52 int left, | 52 int left, |
| 53 int top) { | 53 int top) { |
| 54 return FALSE; | 54 return false; |
| 55 } | 55 } |
| 56 | 56 |
| 57 CFX_DIBitmap* IFX_RenderDeviceDriver::GetBackDrop() { | 57 CFX_DIBitmap* IFX_RenderDeviceDriver::GetBackDrop() { |
| 58 return nullptr; | 58 return nullptr; |
| 59 } | 59 } |
| 60 | 60 |
| 61 FX_BOOL IFX_RenderDeviceDriver::ContinueDIBits(void* handle, | 61 bool IFX_RenderDeviceDriver::ContinueDIBits(void* handle, IFX_Pause* pPause) { |
| 62 IFX_Pause* pPause) { | 62 return false; |
| 63 return FALSE; | |
| 64 } | 63 } |
| 65 | 64 |
| 66 void IFX_RenderDeviceDriver::CancelDIBits(void* handle) {} | 65 void IFX_RenderDeviceDriver::CancelDIBits(void* handle) {} |
| 67 | 66 |
| 68 FX_BOOL IFX_RenderDeviceDriver::DrawDeviceText(int nChars, | 67 bool IFX_RenderDeviceDriver::DrawDeviceText(int nChars, |
| 69 const FXTEXT_CHARPOS* pCharPos, | 68 const FXTEXT_CHARPOS* pCharPos, |
| 70 CFX_Font* pFont, | 69 CFX_Font* pFont, |
| 71 const CFX_Matrix* pObject2Device, | 70 const CFX_Matrix* pObject2Device, |
| 72 FX_FLOAT font_size, | 71 FX_FLOAT font_size, |
| 73 uint32_t color) { | 72 uint32_t color) { |
| 74 return FALSE; | 73 return false; |
| 75 } | 74 } |
| 76 | 75 |
| 77 void* IFX_RenderDeviceDriver::GetPlatformSurface() const { | 76 void* IFX_RenderDeviceDriver::GetPlatformSurface() const { |
| 78 return nullptr; | 77 return nullptr; |
| 79 } | 78 } |
| 80 | 79 |
| 81 int IFX_RenderDeviceDriver::GetDriverType() const { | 80 int IFX_RenderDeviceDriver::GetDriverType() const { |
| 82 return 0; | 81 return 0; |
| 83 } | 82 } |
| 84 | 83 |
| 85 void IFX_RenderDeviceDriver::ClearDriver() {} | 84 void IFX_RenderDeviceDriver::ClearDriver() {} |
| 86 | 85 |
| 87 FX_BOOL IFX_RenderDeviceDriver::DrawShading(const CPDF_ShadingPattern* pPattern, | 86 bool IFX_RenderDeviceDriver::DrawShading(const CPDF_ShadingPattern* pPattern, |
| 88 const CFX_Matrix* pMatrix, | 87 const CFX_Matrix* pMatrix, |
| 89 const FX_RECT& clip_rect, | 88 const FX_RECT& clip_rect, |
| 90 int alpha, | 89 int alpha, |
| 91 FX_BOOL bAlphaMode) { | 90 bool bAlphaMode) { |
| 92 return false; | 91 return false; |
| 93 } | 92 } |
| 94 | 93 |
| 95 bool IFX_RenderDeviceDriver::SetBitsWithMask(const CFX_DIBSource* pBitmap, | 94 bool IFX_RenderDeviceDriver::SetBitsWithMask(const CFX_DIBSource* pBitmap, |
| 96 const CFX_DIBSource* pMask, | 95 const CFX_DIBSource* pMask, |
| 97 int left, | 96 int left, |
| 98 int top, | 97 int top, |
| 99 int bitmap_alpha, | 98 int bitmap_alpha, |
| 100 int blend_type) { | 99 int blend_type) { |
| 101 return false; | 100 return false; |
| 102 } | 101 } |
| OLD | NEW |