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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h

Issue 2783913002: Start USING_FAST_MALLOC for more paint data structures (Closed)
Patch Set: Created 3 years, 8 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 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 PaintArtifactCompositor_h 5 #ifndef PaintArtifactCompositor_h
6 #define PaintArtifactCompositor_h 6 #define PaintArtifactCompositor_h
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "platform/RuntimeEnabledFeatures.h" 10 #include "platform/RuntimeEnabledFeatures.h"
(...skipping 21 matching lines...) Expand all
32 struct PaintChunk; 32 struct PaintChunk;
33 33
34 // Responsible for managing compositing in terms of a PaintArtifact. 34 // Responsible for managing compositing in terms of a PaintArtifact.
35 // 35 //
36 // Owns a subtree of the compositor layer tree, and updates it in response to 36 // Owns a subtree of the compositor layer tree, and updates it in response to
37 // changes in the paint artifact. 37 // changes in the paint artifact.
38 // 38 //
39 // PaintArtifactCompositor is the successor to PaintLayerCompositor, reflecting 39 // PaintArtifactCompositor is the successor to PaintLayerCompositor, reflecting
40 // the new home of compositing decisions after paint in Slimming Paint v2. 40 // the new home of compositing decisions after paint in Slimming Paint v2.
41 class PLATFORM_EXPORT PaintArtifactCompositor { 41 class PLATFORM_EXPORT PaintArtifactCompositor {
42 USING_FAST_MALLOC(PaintArtifactCompositor);
42 WTF_MAKE_NONCOPYABLE(PaintArtifactCompositor); 43 WTF_MAKE_NONCOPYABLE(PaintArtifactCompositor);
43 44
44 public: 45 public:
45 ~PaintArtifactCompositor(); 46 ~PaintArtifactCompositor();
46 47
47 static std::unique_ptr<PaintArtifactCompositor> create() { 48 static std::unique_ptr<PaintArtifactCompositor> create() {
48 return WTF::wrapUnique(new PaintArtifactCompositor()); 49 return WTF::wrapUnique(new PaintArtifactCompositor());
49 } 50 }
50 51
51 // Updates the layer tree to match the provided paint artifact. 52 // Updates the layer tree to match the provided paint artifact.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 PendingLayer); 219 PendingLayer);
219 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees, 220 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees,
220 PendingLayerWithGeometry); 221 PendingLayerWithGeometry);
221 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees, 222 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees,
222 PendingLayerKnownOpaque_DISABLED); 223 PendingLayerKnownOpaque_DISABLED);
223 }; 224 };
224 225
225 } // namespace blink 226 } // namespace blink
226 227
227 #endif // PaintArtifactCompositor_h 228 #endif // PaintArtifactCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698