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

Side by Side Diff: Source/core/paint/Transform3DRecorder.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 Transform3DRecorder_h 5 #ifndef Transform3DRecorder_h
6 #define Transform3DRecorder_h 6 #define Transform3DRecorder_h
7 7
8 #include "platform/graphics/paint/DisplayItem.h" 8 #include "platform/graphics/paint/DisplayItem.h"
9 #include "wtf/Allocator.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class GraphicsContext; 13 class GraphicsContext;
13 class TransformationMatrix; 14 class TransformationMatrix;
14 15
15 class Transform3DRecorder { 16 class Transform3DRecorder {
17 STACK_ALLOCATED();
16 public: 18 public:
17 Transform3DRecorder(GraphicsContext&, const DisplayItemClientWrapper&, Displ ayItem::Type, const TransformationMatrix&); 19 Transform3DRecorder(GraphicsContext&, const DisplayItemClientWrapper&, Displ ayItem::Type, const TransformationMatrix&);
18 ~Transform3DRecorder(); 20 ~Transform3DRecorder();
19 21
20 private: 22 private:
21 GraphicsContext& m_context; 23 GraphicsContext& m_context;
22 DisplayItemClientWrapper m_client; 24 DisplayItemClientWrapper m_client;
23 DisplayItem::Type m_type; 25 DisplayItem::Type m_type;
24 bool m_skipRecordingForIdentityTransform; 26 bool m_skipRecordingForIdentityTransform;
25 }; 27 };
26 28
27 } // namespace blink 29 } // namespace blink
28 30
29 #endif // Transform3DRecorder_h 31 #endif // Transform3DRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698