Changeset 137913 in webkit
- Timestamp:
- Dec 17, 2012 8:57:16 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r137910 r137913 1 2012-12-17 Antoine Quint <graouts@apple.com> 2 3 Web Inspector: Provide the paint count of layers through the LayerTreeAgent 4 https://bugs.webkit.org/show_bug.cgi?id=105024 5 6 Reviewed by Pavel Feldman. 7 8 Add the paintCount property to the expected output of the LayerTreeAgent test. 9 10 * inspector-protocol/layer-tree-expected.txt: 11 * inspector-protocol/layer-tree.html: 12 1 13 2012-12-17 Csaba Osztrogonác <ossy@webkit.org> 2 14 -
trunk/LayoutTests/inspector-protocol/layer-tree-expected.txt
r136959 r137913 28 28 "height": "number" 29 29 }, 30 "paintCount": "number", 30 31 "childLayers": [ 31 32 { … … 66 67 "height": 50 67 68 }, 69 "paintCount": "number", 68 70 "childLayers": [ 69 71 { … … 83 85 "height": 50 84 86 }, 87 "paintCount": "number", 85 88 "childLayers": [] 86 89 } … … 103 106 "height": 100 104 107 }, 108 "paintCount": "number", 105 109 "childLayers": [ 106 110 { … … 120 124 "height": 50 121 125 }, 126 "paintCount": "number", 122 127 "childLayers": [] 123 128 } … … 162 167 "height": "number" 163 168 }, 169 "paintCount": "number", 164 170 "childLayers": [] 165 171 } … … 193 199 "height": "number" 194 200 }, 201 "paintCount": "number", 195 202 "childLayers": [ 196 203 { … … 231 238 "height": 50 232 239 }, 240 "paintCount": "number", 233 241 "childLayers": [ 234 242 { … … 248 256 "height": 50 249 257 }, 258 "paintCount": "number", 250 259 "childLayers": [] 251 260 } … … 268 277 "height": 100 269 278 }, 279 "paintCount": "number", 270 280 "childLayers": [ 271 281 { … … 285 295 "height": 50 286 296 }, 297 "paintCount": "number", 287 298 "childLayers": [] 288 299 } … … 327 338 "height": "number" 328 339 }, 329 "childLayers": [] 330 }, 331 { 332 "layerId": "string", 333 "bounds": { 334 "x": 0, 335 "y": 0, 336 "width": 50, 337 "height": 50 338 }, 339 "isComposited": true, 340 "memory": "number", 341 "compositedBounds": { 342 "x": 0, 343 "y": 0, 344 "width": 50, 345 "height": 50 346 }, 340 "paintCount": "number", 341 "childLayers": [] 342 }, 343 { 344 "layerId": "string", 345 "bounds": { 346 "x": 0, 347 "y": 0, 348 "width": 50, 349 "height": 50 350 }, 351 "isComposited": true, 352 "memory": "number", 353 "compositedBounds": { 354 "x": 0, 355 "y": 0, 356 "width": 50, 357 "height": 50 358 }, 359 "paintCount": "number", 347 360 "childLayers": [] 348 361 } -
trunk/LayoutTests/inspector-protocol/layer-tree.html
r136959 r137913 169 169 function replacer(key, value) 170 170 { 171 if (key === "layerId" || key === "memory" )171 if (key === "layerId" || key === "memory" || key === "paintCount") 172 172 return typeof(value); 173 173 -
trunk/Source/WebCore/ChangeLog
r137912 r137913 1 2012-12-17 Antoine Quint <graouts@apple.com> 2 3 Web Inspector: Provide the paint count of layers through the LayerTreeAgent 4 https://bugs.webkit.org/show_bug.cgi?id=105024 5 6 Reviewed by Pavel Feldman. 7 8 We add a new optional .paintCount property to the Layer object, passing through the 9 relevant information from GraphicsLayer. 10 11 * inspector/Inspector.json: 12 * inspector/InspectorLayerTreeAgent.cpp: 13 (WebCore::InspectorLayerTreeAgent::buildObjectForLayer): 14 1 15 2012-12-17 Pavel Feldman <pfeldman@chromium.org> 2 16 -
trunk/Source/WebCore/inspector/Inspector.json
r137751 r137913 3332 3332 { "name": "bounds", "$ref": "IntRect", "description": "Bounds of the layer." }, 3333 3333 { "name": "isComposited", "type": "boolean", "description": "Indicates whether this layer is composited." }, 3334 { "name": "paintCount", "type": "integer", "optional": true, "description": "Indicates how many time this layer has painted." }, 3334 3335 { "name": "memory", "type": "integer", "optional": true, "description": "Estimated memory used by this layer." }, 3335 3336 { "name": "compositedBounds", "$ref": "IntRect", "optional": true, "description": "The bounds of the composited layer." }, -
trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.cpp
r137730 r137913 138 138 layerObject->setMemory(backing->backingStoreMemoryEstimate()); 139 139 layerObject->setCompositedBounds(buildObjectForIntRect(backing->compositedBounds())); 140 layerObject->setPaintCount(backing->graphicsLayer()->repaintCount()); 140 141 } 141 142
Note: See TracChangeset
for help on using the changeset viewer.