Web Inspector: Provide the paint count of layers through the LayerTreeAgent
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Dec 2012 16:57:16 +0000 (16:57 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Dec 2012 16:57:16 +0000 (16:57 +0000)
commitd9a52c413dc8e4ec8814a3dfbb9fee4e5ccc0311
treec5f9f85acdec396e132b26f184276aff70773708
parent79435dd70c7f456448d4bfaae366c84696546ac3
Web Inspector: Provide the paint count of layers through the LayerTreeAgent
https://bugs.webkit.org/show_bug.cgi?id=105024

Patch by Antoine Quint <graouts@apple.com> on 2012-12-17
Reviewed by Pavel Feldman.

Source/WebCore:

We add a new optional .paintCount property to the Layer object, passing through the
relevant information from GraphicsLayer.

* inspector/Inspector.json:
* inspector/InspectorLayerTreeAgent.cpp:
(WebCore::InspectorLayerTreeAgent::buildObjectForLayer):

LayoutTests:

Add the paintCount property to the expected output of the LayerTreeAgent test.

* inspector-protocol/layer-tree-expected.txt:
* inspector-protocol/layer-tree.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector-protocol/layer-tree-expected.txt
LayoutTests/inspector-protocol/layer-tree.html
Source/WebCore/ChangeLog
Source/WebCore/inspector/Inspector.json
Source/WebCore/inspector/InspectorLayerTreeAgent.cpp