Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: xfa/fde/fde_gedevice.h

Issue 1877383002: Only SolidBrush types are created, remove other brushes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fde/fde_devbasic.cpp ('k') | xfa/fde/fde_gedevice.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FDE_FDE_GEDEVICE_H_ 7 #ifndef XFA_FDE_FDE_GEDEVICE_H_
8 #define XFA_FDE_FDE_GEDEVICE_H_ 8 #define XFA_FDE_FDE_GEDEVICE_H_
9 9
10 #include "xfa/fde/fde_renderdevice.h" 10 #include "xfa/fde/fde_renderdevice.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const CFX_Matrix* pMatrix = NULL); 89 const CFX_Matrix* pMatrix = NULL);
90 virtual FX_BOOL FillPolygon(IFDE_Brush* pBrush, 90 virtual FX_BOOL FillPolygon(IFDE_Brush* pBrush,
91 const CFX_PointsF& points, 91 const CFX_PointsF& points,
92 const CFX_Matrix* pMatrix = NULL); 92 const CFX_Matrix* pMatrix = NULL);
93 virtual FX_BOOL FillRectangle(IFDE_Brush* pBrush, 93 virtual FX_BOOL FillRectangle(IFDE_Brush* pBrush,
94 const CFX_RectF& rect, 94 const CFX_RectF& rect,
95 const CFX_Matrix* pMatrix = NULL); 95 const CFX_Matrix* pMatrix = NULL);
96 FX_BOOL FillSolidPath(IFDE_Brush* pBrush, 96 FX_BOOL FillSolidPath(IFDE_Brush* pBrush,
97 const CFX_PathData* pPath, 97 const CFX_PathData* pPath,
98 const CFX_Matrix* pMatrix); 98 const CFX_Matrix* pMatrix);
99 FX_BOOL FillHatchPath(IFDE_Brush* pBrush, 99
100 const CFX_PathData* pPath,
101 const CFX_Matrix* pMatrix);
102 FX_BOOL FillTexturePath(IFDE_Brush* pBrush,
103 const CFX_PathData* pPath,
104 const CFX_Matrix* pMatrix);
105 FX_BOOL FillLinearGradientPath(IFDE_Brush* pBrush,
106 const CFX_PathData* pPath,
107 const CFX_Matrix* pMatrix);
108 FX_BOOL DrawSolidString(IFDE_Brush* pBrush, 100 FX_BOOL DrawSolidString(IFDE_Brush* pBrush,
109 IFX_Font* pFont, 101 IFX_Font* pFont,
110 const FXTEXT_CHARPOS* pCharPos, 102 const FXTEXT_CHARPOS* pCharPos,
111 int32_t iCount, 103 int32_t iCount,
112 FX_FLOAT fFontSize, 104 FX_FLOAT fFontSize,
113 const CFX_Matrix* pMatrix); 105 const CFX_Matrix* pMatrix);
114 FX_BOOL DrawStringPath(IFDE_Brush* pBrush, 106 FX_BOOL DrawStringPath(IFDE_Brush* pBrush,
115 IFX_Font* pFont, 107 IFX_Font* pFont,
116 const FXTEXT_CHARPOS* pCharPos, 108 const FXTEXT_CHARPOS* pCharPos,
117 int32_t iCount, 109 int32_t iCount,
118 FX_FLOAT fFontSize, 110 FX_FLOAT fFontSize,
119 const CFX_Matrix* pMatrix); 111 const CFX_Matrix* pMatrix);
120 112
121 protected: 113 protected:
122 FX_BOOL CreatePen(IFDE_Pen* pPen, 114 FX_BOOL CreatePen(IFDE_Pen* pPen,
123 FX_FLOAT fPenWidth, 115 FX_FLOAT fPenWidth,
124 CFX_GraphStateData& graphState); 116 CFX_GraphStateData& graphState);
125 FX_BOOL WrapTexture(int32_t iWrapMode, 117
126 const CFX_DIBitmap* pBitmap,
127 const CFX_PathData* pPath,
128 const CFX_Matrix* pMatrix);
129 CFX_RenderDevice* m_pDevice; 118 CFX_RenderDevice* m_pDevice;
130 CFX_RectF m_rtClip; 119 CFX_RectF m_rtClip;
131 FX_BOOL m_bOwnerDevice; 120 FX_BOOL m_bOwnerDevice;
132 FXTEXT_CHARPOS* m_pCharPos; 121 FXTEXT_CHARPOS* m_pCharPos;
133 int32_t m_iCharCount; 122 int32_t m_iCharCount;
134 }; 123 };
135 124
136 #endif // XFA_FDE_FDE_GEDEVICE_H_ 125 #endif // XFA_FDE_FDE_GEDEVICE_H_
OLDNEW
« no previous file with comments | « xfa/fde/fde_devbasic.cpp ('k') | xfa/fde/fde_gedevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698