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

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

Issue 2868283003: [SPv2] Renaming and refactor about raster invalidation tracking (Closed)
Patch Set: - Created 3 years, 7 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 <memory> 8 #include <memory>
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "platform/PlatformExport.h" 10 #include "platform/PlatformExport.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // way of locating the layers of interest, since there are still a slew of 74 // way of locating the layers of interest, since there are still a slew of
75 // placeholder layers required. 75 // placeholder layers required.
76 struct ExtraDataForTesting { 76 struct ExtraDataForTesting {
77 Vector<scoped_refptr<cc::Layer>> content_layers; 77 Vector<scoped_refptr<cc::Layer>> content_layers;
78 }; 78 };
79 void EnableExtraDataForTesting() { extra_data_for_testing_enabled_ = true; } 79 void EnableExtraDataForTesting() { extra_data_for_testing_enabled_ = true; }
80 ExtraDataForTesting* GetExtraDataForTesting() const { 80 ExtraDataForTesting* GetExtraDataForTesting() const {
81 return extra_data_for_testing_.get(); 81 return extra_data_for_testing_.get();
82 } 82 }
83 83
84 void SetTracksRasterInvalidations(bool);
85 void ResetTrackedRasterInvalidations(); 84 void ResetTrackedRasterInvalidations();
86 bool HasTrackedRasterInvalidations() const; 85 bool HasTrackedRasterInvalidations() const;
87 86
88 std::unique_ptr<JSONObject> LayersAsJSON(LayerTreeFlags) const; 87 std::unique_ptr<JSONObject> LayersAsJSON(LayerTreeFlags) const;
89 88
90 #ifndef NDEBUG 89 #ifndef NDEBUG
91 void ShowDebugData(); 90 void ShowDebugData();
92 #endif 91 #endif
93 92
94 private: 93 private:
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 const PaintArtifact&); 170 const PaintArtifact&);
172 171
173 scoped_refptr<cc::Layer> root_layer_; 172 scoped_refptr<cc::Layer> root_layer_;
174 std::unique_ptr<WebLayer> web_layer_; 173 std::unique_ptr<WebLayer> web_layer_;
175 Vector<std::unique_ptr<ContentLayerClientImpl>> content_layer_clients_; 174 Vector<std::unique_ptr<ContentLayerClientImpl>> content_layer_clients_;
176 175
177 bool extra_data_for_testing_enabled_ = false; 176 bool extra_data_for_testing_enabled_ = false;
178 std::unique_ptr<ExtraDataForTesting> extra_data_for_testing_; 177 std::unique_ptr<ExtraDataForTesting> extra_data_for_testing_;
179 friend class StubChromeClientForSPv2; 178 friend class StubChromeClientForSPv2;
180 179
181 bool is_tracking_raster_invalidations_;
182 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees, 180 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees,
183 ForeignLayerPassesThrough); 181 ForeignLayerPassesThrough);
184 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees, 182 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees,
185 MergeSimpleChunks); 183 MergeSimpleChunks);
186 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees, 184 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees,
187 Merge2DTransform); 185 Merge2DTransform);
188 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees, 186 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees,
189 Merge2DTransformDirectAncestor); 187 Merge2DTransformDirectAncestor);
190 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees, 188 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees,
191 MergeTransformOrigin); 189 MergeTransformOrigin);
(...skipping 26 matching lines...) Expand all
218 PendingLayer); 216 PendingLayer);
219 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees, 217 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees,
220 PendingLayerWithGeometry); 218 PendingLayerWithGeometry);
221 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees, 219 FRIEND_TEST_ALL_PREFIXES(PaintArtifactCompositorTestWithPropertyTrees,
222 PendingLayerKnownOpaque_DISABLED); 220 PendingLayerKnownOpaque_DISABLED);
223 }; 221 };
224 222
225 } // namespace blink 223 } // namespace blink
226 224
227 #endif // PaintArtifactCompositor_h 225 #endif // PaintArtifactCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698