Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 #ifndef XFA_FXGRAPHICS_CFX_PATTERN_H_ | |
| 8 #define XFA_FXGRAPHICS_CFX_PATTERN_H_ | |
| 9 | |
| 10 #include "core/include/fxcrt/fx_coordinates.h" | |
| 11 #include "core/include/fxcrt/fx_system.h" | |
| 12 #include "xfa/fxgraphics/include/cfx_graphics.h" | |
| 13 | |
| 14 class CFX_DIBitmap; | |
| 15 class CFX_Matrix; | |
| 16 | |
| 17 class CFX_Pattern { | |
| 18 public: | |
| 19 CFX_Pattern(); | |
| 20 virtual ~CFX_Pattern(); | |
| 21 | |
| 22 FX_ERR Create(FX_HatchStyle hatchStyle, | |
|
Tom Sepez
2016/03/16 19:38:31
Does this ever fail? Do we check the error if it
dsinclair
2016/03/16 19:59:16
Done.
| |
| 23 const FX_ARGB foreArgb, | |
| 24 const FX_ARGB backArgb, | |
| 25 CFX_Matrix* matrix = NULL); | |
| 26 | |
| 27 private: | |
| 28 friend class CFX_Graphics; | |
| 29 | |
| 30 CFX_Matrix m_matrix; | |
| 31 union { | |
|
Tom Sepez
2016/03/16 19:38:31
Are some of these cases unused now that the type c
dsinclair
2016/03/16 19:59:16
Apparently m_rectInfo was never used, and we don't
| |
| 32 struct { | |
| 33 CFX_RectF rect; | |
| 34 FX_FLOAT xStep; | |
| 35 FX_FLOAT yStep; | |
| 36 FX_BOOL isColored; | |
| 37 } m_rectInfo; | |
| 38 struct { | |
| 39 CFX_DIBitmap* bitmap; | |
| 40 FX_FLOAT x1Step; | |
| 41 FX_FLOAT y1Step; | |
| 42 } m_bitmapInfo; | |
| 43 struct { | |
| 44 FX_HatchStyle hatchStyle; | |
| 45 FX_ARGB foreArgb; | |
| 46 FX_ARGB backArgb; | |
| 47 } m_hatchInfo; | |
| 48 }; | |
| 49 }; | |
| 50 | |
| 51 #endif // XFA_FXGRAPHICS_CFX_PATTERN_H_ | |
| OLD | NEW |