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

Side by Side Diff: Source/core/paint/TransformRecorder.h

Issue 1319893002: Make classes and structures in core/paint 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 TransformRecorder_h 5 #ifndef TransformRecorder_h
6 #define TransformRecorder_h 6 #define TransformRecorder_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/graphics/paint/DisplayItem.h" 9 #include "platform/graphics/paint/DisplayItem.h"
10 #include "wtf/Allocator.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class GraphicsContext; 14 class GraphicsContext;
14 class AffineTransform; 15 class AffineTransform;
15 16
16 class CORE_EXPORT TransformRecorder { 17 class CORE_EXPORT TransformRecorder {
18 STACK_ALLOCATED();
17 public: 19 public:
18 TransformRecorder(GraphicsContext&, const DisplayItemClientWrapper&, const A ffineTransform&); 20 TransformRecorder(GraphicsContext&, const DisplayItemClientWrapper&, const A ffineTransform&);
19 ~TransformRecorder(); 21 ~TransformRecorder();
20 22
21 private: 23 private:
22 GraphicsContext& m_context; 24 GraphicsContext& m_context;
23 DisplayItemClientWrapper m_client; 25 DisplayItemClientWrapper m_client;
24 bool m_skipRecordingForIdentityTransform; 26 bool m_skipRecordingForIdentityTransform;
25 }; 27 };
26 28
27 } // namespace blink 29 } // namespace blink
28 30
29 #endif // TransformRecorder_h 31 #endif // TransformRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698