1 // Copyright 2016 The PDFium Authors
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/renderdevicedriver_iface.h"
8
9 #include "core/fxcrt/fx_coordinates.h"
10 #include "core/fxge/cfx_path.h"
11 #include "core/fxge/dib/cfx_dibitmap.h"
12
13 RenderDeviceDriverIface::~RenderDeviceDriverIface() = default;
14
SetClip_PathStroke(const CFX_Path & path,const CFX_Matrix * pObject2Device,const CFX_GraphStateData * pGraphState)15 bool RenderDeviceDriverIface::SetClip_PathStroke(
16 const CFX_Path& path,
17 const CFX_Matrix* pObject2Device,
18 const CFX_GraphStateData* pGraphState) {
19 return false;
20 }
21
SetBaseClip(const FX_RECT & rect)22 void RenderDeviceDriverIface::SetBaseClip(const FX_RECT& rect) {}
23
FillRectWithBlend(const FX_RECT & rect,uint32_t fill_color,BlendMode blend_type)24 bool RenderDeviceDriverIface::FillRectWithBlend(const FX_RECT& rect,
25 uint32_t fill_color,
26 BlendMode blend_type) {
27 return false;
28 }
29
DrawCosmeticLine(const CFX_PointF & ptMoveTo,const CFX_PointF & ptLineTo,uint32_t color,BlendMode blend_type)30 bool RenderDeviceDriverIface::DrawCosmeticLine(const CFX_PointF& ptMoveTo,
31 const CFX_PointF& ptLineTo,
32 uint32_t color,
33 BlendMode blend_type) {
34 return false;
35 }
36
GetDIBits(const RetainPtr<CFX_DIBitmap> & pBitmap,int left,int top)37 bool RenderDeviceDriverIface::GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
38 int left,
39 int top) {
40 return false;
41 }
42
GetBackDrop()43 RetainPtr<CFX_DIBitmap> RenderDeviceDriverIface::GetBackDrop() {
44 return RetainPtr<CFX_DIBitmap>();
45 }
46
ContinueDIBits(CFX_ImageRenderer * handle,PauseIndicatorIface * pPause)47 bool RenderDeviceDriverIface::ContinueDIBits(CFX_ImageRenderer* handle,
48 PauseIndicatorIface* pPause) {
49 return false;
50 }
51
DrawDeviceText(pdfium::span<const TextCharPos> pCharPos,CFX_Font * pFont,const CFX_Matrix & mtObject2Device,float font_size,uint32_t color,const CFX_TextRenderOptions & options)52 bool RenderDeviceDriverIface::DrawDeviceText(
53 pdfium::span<const TextCharPos> pCharPos,
54 CFX_Font* pFont,
55 const CFX_Matrix& mtObject2Device,
56 float font_size,
57 uint32_t color,
58 const CFX_TextRenderOptions& options) {
59 return false;
60 }
61
GetDriverType() const62 int RenderDeviceDriverIface::GetDriverType() const {
63 return 0;
64 }
65
DrawShading(const CPDF_ShadingPattern * pPattern,const CFX_Matrix * pMatrix,const FX_RECT & clip_rect,int alpha,bool bAlphaMode)66 bool RenderDeviceDriverIface::DrawShading(const CPDF_ShadingPattern* pPattern,
67 const CFX_Matrix* pMatrix,
68 const FX_RECT& clip_rect,
69 int alpha,
70 bool bAlphaMode) {
71 return false;
72 }
73
74 #if defined(_SKIA_SUPPORT_)
SetBitsWithMask(const RetainPtr<CFX_DIBBase> & pBitmap,const RetainPtr<CFX_DIBBase> & pMask,int left,int top,int bitmap_alpha,BlendMode blend_type)75 bool RenderDeviceDriverIface::SetBitsWithMask(
76 const RetainPtr<CFX_DIBBase>& pBitmap,
77 const RetainPtr<CFX_DIBBase>& pMask,
78 int left,
79 int top,
80 int bitmap_alpha,
81 BlendMode blend_type) {
82 return false;
83 }
84
SetGroupKnockout(bool group_knockout)85 void RenderDeviceDriverIface::SetGroupKnockout(bool group_knockout) {}
86 #endif
87