1 // Copyright 2016 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #include "core/fxge/ifx_renderdevicedriver.h" 8 9 #include "core/fxcrt/fx_coordinates.h" 10 #include "core/fxge/cfx_pathdata.h" 11 #include "core/fxge/dib/cfx_dibitmap.h" 12 13 IFX_RenderDeviceDriver::~IFX_RenderDeviceDriver() {} 14 15 CFX_Matrix IFX_RenderDeviceDriver::GetCTM() const { 16 return CFX_Matrix(); 17 } 18 19 bool IFX_RenderDeviceDriver::StartRendering() { 20 return true; 21 } 22 23 void IFX_RenderDeviceDriver::EndRendering() {} 24 25 bool IFX_RenderDeviceDriver::SetClip_PathStroke( 26 const CFX_PathData* pPathData, 27 const CFX_Matrix* pObject2Device, 28 const CFX_GraphStateData* pGraphState) { 29 return false; 30 } 31 32 bool IFX_RenderDeviceDriver::SetPixel(int x, int y, uint32_t color) { 33 return false; 34 } 35 36 bool IFX_RenderDeviceDriver::FillRectWithBlend(const FX_RECT* pRect, 37 uint32_t fill_color, 38 int blend_type) { 39 return false; 40 } 41 42 bool IFX_RenderDeviceDriver::DrawCosmeticLine(const CFX_PointF& ptMoveTo, 43 const CFX_PointF& ptLineTo, 44 uint32_t color, 45 int blend_type) { 46 return false; 47 } 48 49 bool IFX_RenderDeviceDriver::GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, 50 int left, 51 int top) { 52 return false; 53 } 54 55 RetainPtr<CFX_DIBitmap> IFX_RenderDeviceDriver::GetBackDrop() { 56 return RetainPtr<CFX_DIBitmap>(); 57 } 58 59 bool IFX_RenderDeviceDriver::ContinueDIBits(CFX_ImageRenderer* handle, 60 IFX_PauseIndicator* pPause) { 61 return false; 62 } 63 64 bool IFX_RenderDeviceDriver::DrawDeviceText(int nChars, 65 const FXTEXT_CHARPOS* pCharPos, 66 CFX_Font* pFont, 67 const CFX_Matrix* pObject2Device, 68 float font_size, 69 uint32_t color) { 70 return false; 71 } 72 73 int IFX_RenderDeviceDriver::GetDriverType() const { 74 return 0; 75 } 76 77 void IFX_RenderDeviceDriver::ClearDriver() {} 78 79 bool IFX_RenderDeviceDriver::DrawShading(const CPDF_ShadingPattern* pPattern, 80 const CFX_Matrix* pMatrix, 81 const FX_RECT& clip_rect, 82 int alpha, 83 bool bAlphaMode) { 84 return false; 85 } 86 87 bool IFX_RenderDeviceDriver::SetBitsWithMask( 88 const RetainPtr<CFX_DIBSource>& pBitmap, 89 const RetainPtr<CFX_DIBSource>& pMask, 90 int left, 91 int top, 92 int bitmap_alpha, 93 int blend_type) { 94 return false; 95 } 96 97 #if defined _SKIA_SUPPORT_ || _SKIA_SUPPORT_PATHS_ 98 void IFX_RenderDeviceDriver::Flush() {} 99 #endif 100