Web Inspector: add checkbox for continuous painting to the inspector's settings
https://bugs.webkit.org/show_bug.cgi?id=107352

Patch by Eberhard Graether <egraether@google.com> on 2013-01-25
Reviewed by Pavel Feldman.

This change adds a checkbox to activate continuous painting to the WebInspector's
rendering settings and plumbs the setting to Chromium's WebLayerTreeView. The
setting is visible if InspectorClient::canContinuouslyPaint() returns true.

Source/Platform:

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

Source/WebCore:

No new tests.

* English.lproj/localizedStrings.js:
* inspector/Inspector.json:
* inspector/InspectorClient.h:
(WebCore::InspectorClient::canContinuouslyPaint):
(WebCore::InspectorClient::setContinuousPaintingEnabled):
(InspectorClient):
* inspector/InspectorPageAgent.cpp:
(PageAgentState):
(WebCore::InspectorPageAgent::restore):
(WebCore::InspectorPageAgent::disable):
(WebCore::InspectorPageAgent::canContinuouslyPaint):
(WebCore):
(WebCore::InspectorPageAgent::setContinuousPaintingEnabled):
* inspector/InspectorPageAgent.h:
* inspector/front-end/Settings.js:
* inspector/front-end/SettingsScreen.js:
(WebInspector.GenericSettingsTab):
(WebInspector.GenericSettingsTab.prototype.get _continuousPaintingChanged):
* inspector/front-end/inspector.js:
(WebInspector.doLoadedDone):

Source/WebKit/chromium:

* public/WebView.h:
(WebView):
* src/InspectorClientImpl.cpp:
(WebKit::InspectorClientImpl::canContinuouslyPaint):
(WebKit):
(WebKit::InspectorClientImpl::setContinuousPaintingEnabled):
* src/InspectorClientImpl.h:
(InspectorClientImpl):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setContinuousPaintingEnabled):
(WebKit):
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
* src/WebViewImpl.h:

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