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/renderdevicedriver_iface.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
~RenderDeviceDriverIface()13 RenderDeviceDriverIface::~RenderDeviceDriverIface() {}
14
StartRendering()15 bool RenderDeviceDriverIface::StartRendering() {
16 return true;
17 }
18
EndRendering()19 void RenderDeviceDriverIface::EndRendering() {}
20
SetClip_PathStroke(const CFX_PathData * pPathData,const CFX_Matrix * pObject2Device,const CFX_GraphStateData * pGraphState)21 bool RenderDeviceDriverIface::SetClip_PathStroke(
22 const CFX_PathData* pPathData,
23 const CFX_Matrix* pObject2Device,
24 const CFX_GraphStateData* pGraphState) {
25 return false;
26 }
27
SetBaseClip(const FX_RECT & rect)28 void RenderDeviceDriverIface::SetBaseClip(const FX_RECT& rect) {}
29
SetPixel(int x,int y,uint32_t color)30 bool RenderDeviceDriverIface::SetPixel(int x, int y, uint32_t color) {
31 return false;
32 }
33
FillRectWithBlend(const FX_RECT & rect,uint32_t fill_color,BlendMode blend_type)34 bool RenderDeviceDriverIface::FillRectWithBlend(const FX_RECT& rect,
35 uint32_t fill_color,
36 BlendMode blend_type) {
37 return false;
38 }
39
DrawCosmeticLine(const CFX_PointF & ptMoveTo,const CFX_PointF & ptLineTo,uint32_t color,BlendMode blend_type)40 bool RenderDeviceDriverIface::DrawCosmeticLine(const CFX_PointF& ptMoveTo,
41 const CFX_PointF& ptLineTo,
42 uint32_t color,
43 BlendMode blend_type) {
44 return false;
45 }
46
GetDIBits(const RetainPtr<CFX_DIBitmap> & pBitmap,int left,int top)47 bool RenderDeviceDriverIface::GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
48 int left,
49 int top) {
50 return false;
51 }
52
GetBackDrop()53 RetainPtr<CFX_DIBitmap> RenderDeviceDriverIface::GetBackDrop() {
54 return RetainPtr<CFX_DIBitmap>();
55 }
56
ContinueDIBits(CFX_ImageRenderer * handle,PauseIndicatorIface * pPause)57 bool RenderDeviceDriverIface::ContinueDIBits(CFX_ImageRenderer* handle,
58 PauseIndicatorIface* pPause) {
59 return false;
60 }
61
DrawDeviceText(int nChars,const TextCharPos * pCharPos,CFX_Font * pFont,const CFX_Matrix & mtObject2Device,float font_size,uint32_t color)62 bool RenderDeviceDriverIface::DrawDeviceText(int nChars,
63 const TextCharPos* pCharPos,
64 CFX_Font* pFont,
65 const CFX_Matrix& mtObject2Device,
66 float font_size,
67 uint32_t color) {
68 return false;
69 }
70
GetDriverType() const71 int RenderDeviceDriverIface::GetDriverType() const {
72 return 0;
73 }
74
ClearDriver()75 void RenderDeviceDriverIface::ClearDriver() {}
76
DrawShading(const CPDF_ShadingPattern * pPattern,const CFX_Matrix * pMatrix,const FX_RECT & clip_rect,int alpha,bool bAlphaMode)77 bool RenderDeviceDriverIface::DrawShading(const CPDF_ShadingPattern* pPattern,
78 const CFX_Matrix* pMatrix,
79 const FX_RECT& clip_rect,
80 int alpha,
81 bool bAlphaMode) {
82 return false;
83 }
84
SetBitsWithMask(const RetainPtr<CFX_DIBBase> & pBitmap,const RetainPtr<CFX_DIBBase> & pMask,int left,int top,int bitmap_alpha,BlendMode blend_type)85 bool RenderDeviceDriverIface::SetBitsWithMask(
86 const RetainPtr<CFX_DIBBase>& pBitmap,
87 const RetainPtr<CFX_DIBBase>& pMask,
88 int left,
89 int top,
90 int bitmap_alpha,
91 BlendMode blend_type) {
92 return false;
93 }
94
95 #if defined _SKIA_SUPPORT_ || _SKIA_SUPPORT_PATHS_
Flush()96 void RenderDeviceDriverIface::Flush() {}
97 #endif
98