• 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/cfx_renderdevice.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(FX_FLOAT x1,FX_FLOAT y1,FX_FLOAT x2,FX_FLOAT y2,uint32_t color,int blend_type)42 bool IFX_RenderDeviceDriver::DrawCosmeticLine(FX_FLOAT x1,
43                                               FX_FLOAT y1,
44                                               FX_FLOAT x2,
45                                               FX_FLOAT y2,
46                                               uint32_t color,
47                                               int blend_type) {
48   return false;
49 }
50 
GetDIBits(CFX_DIBitmap * pBitmap,int left,int top)51 bool IFX_RenderDeviceDriver::GetDIBits(CFX_DIBitmap* pBitmap,
52                                        int left,
53                                        int top) {
54   return false;
55 }
56 
GetBackDrop()57 CFX_DIBitmap* IFX_RenderDeviceDriver::GetBackDrop() {
58   return nullptr;
59 }
60 
ContinueDIBits(void * handle,IFX_Pause * pPause)61 bool IFX_RenderDeviceDriver::ContinueDIBits(void* handle, IFX_Pause* pPause) {
62   return false;
63 }
64 
CancelDIBits(void * handle)65 void IFX_RenderDeviceDriver::CancelDIBits(void* handle) {}
66 
DrawDeviceText(int nChars,const FXTEXT_CHARPOS * pCharPos,CFX_Font * pFont,const CFX_Matrix * pObject2Device,FX_FLOAT font_size,uint32_t color)67 bool IFX_RenderDeviceDriver::DrawDeviceText(int nChars,
68                                             const FXTEXT_CHARPOS* pCharPos,
69                                             CFX_Font* pFont,
70                                             const CFX_Matrix* pObject2Device,
71                                             FX_FLOAT font_size,
72                                             uint32_t color) {
73   return false;
74 }
75 
GetPlatformSurface() const76 void* IFX_RenderDeviceDriver::GetPlatformSurface() const {
77   return nullptr;
78 }
79 
GetDriverType() const80 int IFX_RenderDeviceDriver::GetDriverType() const {
81   return 0;
82 }
83 
ClearDriver()84 void IFX_RenderDeviceDriver::ClearDriver() {}
85 
DrawShading(const CPDF_ShadingPattern * pPattern,const CFX_Matrix * pMatrix,const FX_RECT & clip_rect,int alpha,bool bAlphaMode)86 bool IFX_RenderDeviceDriver::DrawShading(const CPDF_ShadingPattern* pPattern,
87                                          const CFX_Matrix* pMatrix,
88                                          const FX_RECT& clip_rect,
89                                          int alpha,
90                                          bool bAlphaMode) {
91   return false;
92 }
93 
SetBitsWithMask(const CFX_DIBSource * pBitmap,const CFX_DIBSource * pMask,int left,int top,int bitmap_alpha,int blend_type)94 bool IFX_RenderDeviceDriver::SetBitsWithMask(const CFX_DIBSource* pBitmap,
95                                              const CFX_DIBSource* pMask,
96                                              int left,
97                                              int top,
98                                              int bitmap_alpha,
99                                              int blend_type) {
100   return false;
101 }
102 
103 #if defined _SKIA_SUPPORT_ || _SKIA_SUPPORT_PATHS_
Flush()104 void IFX_RenderDeviceDriver::Flush() {}
105 #endif
106