checkbox to toggle FPS counter in the inspector's settings
https://bugs.webkit.org/show_bug.cgi?id=99660

Patch by Eberhard Graether <egraether@google.com> on 2012-11-13
Reviewed by Pavel Feldman.

Added a checkbox to the inspector's settings to toggle a FPS counter. The checkbox appears when InspectorClient::canShowFPSCounter() returns true.

Source/Platform:

* chromium/public/WebLayerTreeView.h:
(WebLayerTreeView):
(WebKit::WebLayerTreeView::setShowFPSCounter):

Source/WebCore:

No new tests.

* English.lproj/localizedStrings.js:
* inspector/Inspector.json:
* inspector/InspectorClient.h:
(WebCore::InspectorClient::canShowFPSCounter):
(WebCore::InspectorClient::setShowFPSCounter):
(InspectorClient):
* inspector/InspectorPageAgent.cpp:
(PageAgentState):
(WebCore::InspectorPageAgent::enable):
(WebCore::InspectorPageAgent::disable):
(WebCore::InspectorPageAgent::canShowFPSCounter):
(WebCore):
(WebCore::InspectorPageAgent::setShowFPSCounter):
* inspector/InspectorPageAgent.h:
* inspector/front-end/Settings.js:
* inspector/front-end/SettingsScreen.js:
(WebInspector.GenericSettingsTab):
(WebInspector.GenericSettingsTab.prototype.get _showFPSCounterChanged):
* inspector/front-end/inspector.js:
(WebInspector.doLoadedDone):

Source/WebKit/chromium:

* public/WebView.h:
(WebView):
* src/InspectorClientImpl.cpp:
(WebKit::InspectorClientImpl::canShowFPSCounter):
(WebKit):
(WebKit::InspectorClientImpl::setShowFPSCounter):
* src/InspectorClientImpl.h:
(InspectorClientImpl):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::WebViewImpl):
(WebKit::WebViewImpl::setShowFPSCounter):
(WebKit):
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
(WebKit::WebViewImpl::loadFontAtlasIfNecessary):
* src/WebViewImpl.h:
(WebViewImpl):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk/Source/Platform/chromium/public@134391 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 file changed
tree: c22b00985048126e53d4aa5aa3bde9f54bfe61a4
  1. android/
  2. linux/
  3. mac/
  4. win/
  5. Platform.h
  6. WebAnimation.h
  7. WebAnimationCurve.h
  8. WebAnimationDelegate.h
  9. WebAudioBus.h
  10. WebAudioDevice.h
  11. WebBlobData.h
  12. WebBlobRegistry.h
  13. WebCanvas.h
  14. WebClipboard.h
  15. WebColor.h
  16. WebCommon.h
  17. WebCompositorFrame.h
  18. WebCompositorFrameAck.h
  19. WebCompositorOutputSurface.h
  20. WebCompositorOutputSurfaceClient.h
  21. WebCompositorSoftwareOutputDevice.h
  22. WebCompositorSupport.h
  23. WebCompositorTransferableResourceList.h
  24. WebContentLayer.h
  25. WebContentLayerClient.h
  26. WebCookie.h
  27. WebCookieJar.h
  28. WebCString.h
  29. WebData.h
  30. WebDelegatedRendererLayer.h
  31. WebDragData.h
  32. WebExternalTextureLayer.h
  33. WebExternalTextureLayerClient.h
  34. WebFileInfo.h
  35. WebFileSystem.h
  36. WebFileUtilities.h
  37. WebFilterOperation.h
  38. WebFilterOperations.h
  39. WebFlingAnimator.h
  40. WebFloatAnimationCurve.h
  41. WebFloatKeyframe.h
  42. WebFloatPoint.h
  43. WebFloatQuad.h
  44. WebFloatRect.h
  45. WebGamepad.h
  46. WebGamepads.h
  47. WebGestureCurve.h
  48. WebGestureCurveTarget.h
  49. WebGraphicsContext3D.h
  50. WebGraphicsMemoryAllocation.h
  51. WebGraphicsMemoryStats.h
  52. WebHTTPBody.h
  53. WebHTTPHeaderVisitor.h
  54. WebHTTPLoadInfo.h
  55. WebImage.h
  56. WebImageLayer.h
  57. WebInputHandler.h
  58. WebInputHandlerClient.h
  59. WebIOSurfaceLayer.h
  60. WebLayer.h
  61. WebLayerScrollClient.h
  62. WebLayerTreeView.h
  63. WebLayerTreeViewClient.h
  64. WebLocalizedString.h
  65. WebMediaConstraints.h
  66. WebMediaStreamCenter.h
  67. WebMediaStreamCenterClient.h
  68. WebMediaStreamComponent.h
  69. WebMediaStreamDescriptor.h
  70. WebMediaStreamSource.h
  71. WebMediaStreamSourcesRequest.h
  72. WebMessagePortChannel.h
  73. WebMessagePortChannelClient.h
  74. WebMimeRegistry.h
  75. WebNonCopyable.h
  76. WebPoint.h
  77. WebPrerender.h
  78. WebPrerenderingSupport.h
  79. WebPrivateOwnPtr.h
  80. WebPrivatePtr.h
  81. WebRect.h
  82. WebReferrerPolicy.h
  83. WebRenderingStats.h
  84. WebRTCConfiguration.h
  85. WebRTCDataChannel.h
  86. WebRTCICECandidate.h
  87. WebRTCPeerConnectionHandler.h
  88. WebRTCPeerConnectionHandlerClient.h
  89. WebRTCSessionDescription.h
  90. WebRTCSessionDescriptionRequest.h
  91. WebRTCStatsRequest.h
  92. WebRTCStatsResponse.h
  93. WebRTCVoidRequest.h
  94. WebScreenInfo.h
  95. WebScrollbar.h
  96. WebScrollbarLayer.h
  97. WebScrollbarThemeGeometry.h
  98. WebScrollbarThemePainter.h
  99. WebSharedGraphicsContext3D.h
  100. WebSize.h
  101. WebSocketStreamError.h
  102. WebSocketStreamHandle.h
  103. WebSocketStreamHandleClient.h
  104. WebSolidColorLayer.h
  105. WebStorageArea.h
  106. WebStorageNamespace.h
  107. WebString.h
  108. WebThread.h
  109. WebThreadSafeData.h
  110. WebTransformAnimationCurve.h
  111. WebTransformationMatrix.h
  112. WebTransformKeyframe.h
  113. WebTransformOperations.h
  114. WebURL.h
  115. WebURLError.h
  116. WebURLLoader.h
  117. WebURLLoaderClient.h
  118. WebURLLoadTiming.h
  119. WebURLRequest.h
  120. WebURLResponse.h
  121. WebVector.h
  122. WebVideoFrame.h
  123. WebVideoFrameProvider.h
  124. WebVideoLayer.h
  125. WebWorkerRunLoop.h