• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
~IFX_RenderDeviceDriver()13 IFX_RenderDeviceDriver::~IFX_RenderDeviceDriver() {}
14 
GetCTM() const15 CFX_Matrix IFX_RenderDeviceDriver::GetCTM() const {
16   return CFX_Matrix();
17 }
18 
StartRendering()19 bool IFX_RenderDeviceDriver::StartRendering() {
20   return true;
21 }
22 
EndRendering()23 void IFX_RenderDeviceDriver::EndRendering() {}
24 
SetClip_PathStroke(const CFX_PathData * pPathData,const CFX_Matrix * pObject2Device,const CFX_GraphStateData * pGraphState)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 
SetPixel(int x,int y,uint32_t color)32 bool IFX_RenderDeviceDriver::SetPixel(int x, int y, uint32_t color) {
33   return false;
34 }
35 
FillRectWithBlend(const FX_RECT * pRect,uint32_t fill_color,int blend_type)36 bool IFX_RenderDeviceDriver::FillRectWithBlend(const FX_RECT* pRect,
37                                                uint32_t fill_color,
38                                                int blend_type) {
39   return false;
40 }
41 
DrawCosmeticLine(const CFX_PointF & ptMoveTo,const CFX_PointF & ptLineTo,uint32_t color,int blend_type)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 
GetDIBits(const RetainPtr<CFX_DIBitmap> & pBitmap,int left,int top)49 bool IFX_RenderDeviceDriver::GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
50                                        int left,
51                                        int top) {
52   return false;
53 }
54 
GetBackDrop()55 RetainPtr<CFX_DIBitmap> IFX_RenderDeviceDriver::GetBackDrop() {
56   return RetainPtr<CFX_DIBitmap>();
57 }
58 
ContinueDIBits(CFX_ImageRenderer * handle,IFX_PauseIndicator * pPause)59 bool IFX_RenderDeviceDriver::ContinueDIBits(CFX_ImageRenderer* handle,
60                                             IFX_PauseIndicator* pPause) {
61   return false;
62 }
63 
DrawDeviceText(int nChars,const FXTEXT_CHARPOS * pCharPos,CFX_Font * pFont,const CFX_Matrix * pObject2Device,float font_size,uint32_t color)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 
GetDriverType() const73 int IFX_RenderDeviceDriver::GetDriverType() const {
74   return 0;
75 }
76 
ClearDriver()77 void IFX_RenderDeviceDriver::ClearDriver() {}
78 
DrawShading(const CPDF_ShadingPattern * pPattern,const CFX_Matrix * pMatrix,const FX_RECT & clip_rect,int alpha,bool bAlphaMode)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 
SetBitsWithMask(const RetainPtr<CFX_DIBSource> & pBitmap,const RetainPtr<CFX_DIBSource> & pMask,int left,int top,int bitmap_alpha,int blend_type)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_
Flush()98 void IFX_RenderDeviceDriver::Flush() {}
99 #endif
100