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

Side by Side Diff: Source/modules/canvas2d/CanvasRenderingContext2DState.h

Issue 1315743003: [part 1] Make classes and structures in modules/ fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/modules/cachestorage/GlobalCacheStorage.h ('k') | Source/modules/canvas2d/ClipList.h » ('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 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
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
OLDNEW
« no previous file with comments | « Source/modules/cachestorage/GlobalCacheStorage.h ('k') | Source/modules/canvas2d/ClipList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698