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

Side by Side Diff: xfa/fxgraphics/include/cfx_graphics.h

Issue 2072803002: Make code compile with clang_use_chrome_plugin (final) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 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/fxgraphics/cfx_graphics.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_ 7 #ifndef XFA_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_
8 #define XFA_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_ 8 #define XFA_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_
9 9
10 #include "core/fxcrt/include/fx_system.h" 10 #include "core/fxcrt/include/fx_system.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 FWL_Error InverseRect(const CFX_RectF& rect); 174 FWL_Error InverseRect(const CFX_RectF& rect);
175 FWL_Error XorDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect); 175 FWL_Error XorDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect);
176 FWL_Error EqvDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect); 176 FWL_Error EqvDIBitmap(const CFX_DIBitmap* srcBitmap, const CFX_RectF& rect);
177 177
178 protected: 178 protected:
179 int32_t m_type; 179 int32_t m_type;
180 180
181 private: 181 private:
182 struct TInfo { 182 struct TInfo {
183 TInfo() 183 TInfo();
184 : isAntialiasing(TRUE),
185 strokeAlignment(FX_STROKEALIGNMENT_Center),
186 isActOnDash(FALSE),
187 strokeColor(nullptr),
188 fillColor(nullptr),
189 font(nullptr),
190 fontSize(40.0),
191 fontHScale(1.0),
192 fontSpacing(0.0) {}
193 explicit TInfo(const TInfo& info); 184 explicit TInfo(const TInfo& info);
194 TInfo& operator=(const TInfo& other); 185 TInfo& operator=(const TInfo& other);
195 186
196 CFX_GraphStateData graphState; 187 CFX_GraphStateData graphState;
197 FX_BOOL isAntialiasing; 188 FX_BOOL isAntialiasing;
198 FX_StrokeAlignment strokeAlignment; 189 FX_StrokeAlignment strokeAlignment;
199 CFX_Matrix CTM; 190 CFX_Matrix CTM;
200 FX_BOOL isActOnDash; 191 FX_BOOL isActOnDash;
201 CFX_Color* strokeColor; 192 CFX_Color* strokeColor;
202 CFX_Color* fillColor; 193 CFX_Color* fillColor;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 FXTEXT_CHARPOS* charPos, 228 FXTEXT_CHARPOS* charPos,
238 CFX_RectF& rect); 229 CFX_RectF& rect);
239 230
240 CFX_RenderDevice* m_renderDevice; 231 CFX_RenderDevice* m_renderDevice;
241 CFX_ArrayTemplate<TInfo*> m_infoStack; 232 CFX_ArrayTemplate<TInfo*> m_infoStack;
242 CAGG_Graphics* m_aggGraphics; 233 CAGG_Graphics* m_aggGraphics;
243 friend class CAGG_Graphics; 234 friend class CAGG_Graphics;
244 }; 235 };
245 236
246 #endif // XFA_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_ 237 #endif // XFA_FXGRAPHICS_INCLUDE_CFX_GRAPHICS_H_
OLDNEW
« no previous file with comments | « xfa/fxgraphics/cfx_graphics.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698