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 "modules/canvas2d/ClipList.h" | 9 #include "modules/canvas2d/ClipList.h" |
10 #include "platform/fonts/Font.h" | 10 #include "platform/fonts/Font.h" |
11 #include "platform/transforms/AffineTransform.h" | 11 #include "platform/transforms/AffineTransform.h" |
12 #include "wtf/Vector.h" | 12 #include "wtf/Vector.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class CanvasStyle; | 16 class CanvasStyle; |
17 class CSSValue; | 17 class CSSValue; |
18 class Element; | 18 class Element; |
19 | 19 |
20 class CanvasRenderingContext2DState final : public NoBaseWillBeGarbageCollectedF
inalized<CanvasRenderingContext2DState>, public CSSFontSelectorClient { | 20 class CanvasRenderingContext2DState final : public NoBaseWillBeGarbageCollectedF
inalized<CanvasRenderingContext2DState>, public CSSFontSelectorClient { |
21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CanvasRenderingContext2DState); | 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CanvasRenderingContext2DState); |
| 22 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(CanvasRenderingContext2DState); |
22 public: | 23 public: |
23 static PassOwnPtrWillBeRawPtr<CanvasRenderingContext2DState> create() | 24 static PassOwnPtrWillBeRawPtr<CanvasRenderingContext2DState> create() |
24 { | 25 { |
25 return adoptPtrWillBeNoop(new CanvasRenderingContext2DState); | 26 return adoptPtrWillBeNoop(new CanvasRenderingContext2DState); |
26 } | 27 } |
27 | 28 |
28 ~CanvasRenderingContext2DState() override; | 29 ~CanvasRenderingContext2DState() override; |
29 | 30 |
30 DECLARE_VIRTUAL_TRACE(); | 31 DECLARE_VIRTUAL_TRACE(); |
31 | 32 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 mutable bool m_fillStyleDirty : 1; | 216 mutable bool m_fillStyleDirty : 1; |
216 mutable bool m_strokeStyleDirty : 1; | 217 mutable bool m_strokeStyleDirty : 1; |
217 mutable bool m_lineDashDirty : 1; | 218 mutable bool m_lineDashDirty : 1; |
218 | 219 |
219 ClipList m_clipList; | 220 ClipList m_clipList; |
220 }; | 221 }; |
221 | 222 |
222 } // blink | 223 } // blink |
223 | 224 |
224 #endif | 225 #endif |
OLD | NEW |