OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium 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 #ifndef CanvasRenderingContext2DState_h | 5 #ifndef CanvasRenderingContext2DState_h |
6 #define CanvasRenderingContext2DState_h | 6 #define CanvasRenderingContext2DState_h |
7 | 7 |
8 #include "core/css/CSSFontSelectorClient.h" | 8 #include "core/css/CSSFontSelectorClient.h" |
9 #include "core/html/canvas/ClipList.h" | 9 #include "core/html/canvas/ClipList.h" |
10 #include "platform/fonts/Font.h" | 10 #include "platform/fonts/Font.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 float m_globalAlpha; | 194 float m_globalAlpha; |
195 AffineTransform m_transform; | 195 AffineTransform m_transform; |
196 Vector<float> m_lineDash; | 196 Vector<float> m_lineDash; |
197 float m_lineDashOffset; | 197 float m_lineDashOffset; |
198 | 198 |
199 String m_unparsedFont; | 199 String m_unparsedFont; |
200 Font m_font; | 200 Font m_font; |
201 | 201 |
202 String m_unparsedFilter; | 202 String m_unparsedFilter; |
203 RefPtrWillBeRawPtr<CSSValue> m_filterValue; | 203 RefPtrWillBeMember<CSSValue> m_filterValue; |
204 mutable RefPtr<SkImageFilter> m_resolvedFilter; | 204 mutable RefPtr<SkImageFilter> m_resolvedFilter; |
205 | 205 |
206 // Text state. | 206 // Text state. |
207 TextAlign m_textAlign; | 207 TextAlign m_textAlign; |
208 TextBaseline m_textBaseline; | 208 TextBaseline m_textBaseline; |
209 Direction m_direction; | 209 Direction m_direction; |
210 | 210 |
211 bool m_realizedFont : 1; | 211 bool m_realizedFont : 1; |
212 bool m_isTransformInvertible : 1; | 212 bool m_isTransformInvertible : 1; |
213 bool m_hasClip : 1; | 213 bool m_hasClip : 1; |
214 bool m_hasComplexClip : 1; | 214 bool m_hasComplexClip : 1; |
215 mutable bool m_fillStyleDirty : 1; | 215 mutable bool m_fillStyleDirty : 1; |
216 mutable bool m_strokeStyleDirty : 1; | 216 mutable bool m_strokeStyleDirty : 1; |
217 mutable bool m_lineDashDirty : 1; | 217 mutable bool m_lineDashDirty : 1; |
218 | 218 |
219 ClipList m_clipList; | 219 ClipList m_clipList; |
220 }; | 220 }; |
221 | 221 |
222 } // blink | 222 } // blink |
223 | 223 |
224 #endif | 224 #endif |
OLD | NEW |