[Chromium] Code cleanup: removing support for non-deferred 2d canvas rendering
https://bugs.webkit.org/show_bug.cgi?id=112605

Reviewed by James Robinson.

Source/WebCore:

Deleting all the code that was used for propagating and supporting
the Chromium setting for disabling deferred 2d canvas rendering.

No new tests: Affected code paths covered by existing tests.

* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::createImageBuffer):
* html/HTMLCanvasElement.h:
* page/Settings.in:
* platform/graphics/ImageBuffer.h:
(WebCore::ImageBuffer::create):
(ImageBuffer):
* platform/graphics/blackberry/ImageBufferBlackBerry.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/cairo/ImageBufferCairo.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/cg/ImageBufferCG.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/chromium/Canvas2DLayerBridge.cpp:
(WebCore::Canvas2DLayerBridge::Canvas2DLayerBridge):
(WebCore::Canvas2DLayerBridge::~Canvas2DLayerBridge):
(WebCore::Canvas2DLayerBridge::prepareForDraw):
(WebCore::Canvas2DLayerBridge::storageAllocatedForRecordingChanged):
(WebCore::Canvas2DLayerBridge::storageAllocatedForRecording):
(WebCore::Canvas2DLayerBridge::freeMemoryIfPossible):
(WebCore::Canvas2DLayerBridge::flush):
(WebCore::Canvas2DLayerBridge::skCanvas):
(WebCore::Canvas2DLayerBridge::prepareTexture):
(WebCore::Canvas2DLayerBridge::contextAcquired):
* platform/graphics/chromium/Canvas2DLayerBridge.h:
(WebCore::Canvas2DLayerBridge::create):
(Canvas2DLayerBridge):
* platform/graphics/qt/ImageBufferQt.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/skia/ImageBufferSkia.cpp:
(WebCore::createAcceleratedCanvas):
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/wince/ImageBufferWinCE.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/wx/ImageBufferWx.cpp:
(WebCore::ImageBuffer::ImageBuffer):

Source/WebKit/chromium:

Deleting all the code that was used for propagating and supporting
the Chromium setting for disabling deferred 2d canvas rendering.

* public/WebSettings.h:
(WebKit::WebSettings::setDeferred2dCanvasEnabled):
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setDeferred2dCanvasEnabled):
* tests/Canvas2DLayerBridgeTest.cpp:
(Canvas2DLayerBridgeTest::fullLifecycleTest):
* tests/Canvas2DLayerManagerTest.cpp:
(FakeCanvas2DLayerBridge::FakeCanvas2DLayerBridge):

Tools:

Deleting all the code that was used for propagating and supporting
the Chromium setting for disabling deferred 2d canvas rendering.

* DumpRenderTree/chromium/DumpRenderTree.cpp:
(main):
* DumpRenderTree/chromium/TestRunner/public/WebPreferences.h:
* DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp:
(WebTestRunner::WebPreferences::reset):
(WebTestRunner::WebPreferences::applyTo):
* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::TestShell):
(TestShell::resetWebSettings):
(TestShell::runFileTest):
* DumpRenderTree/chromium/TestShell.h:
(TestShell):

LayoutTests:

Marked some 2d canvas tests as failing. These tests are using the
two point radial gradient API.  The bug was already present in
chromium. Starts getting detected in DRT with this change.
Related: crbug.com/222140


git-svn-id: https://svn.webkit.org/repository/webkit/trunk/Source/WebKit/chromium/public@146351 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 file changed
tree: 91b028e45505ca4be9a68d2001e8d5d3b1dad320
  1. android/
  2. default/
  3. gtk/
  4. linux/
  5. mac/
  6. win/
  7. x11/
  8. WebAccessibilityNotification.h
  9. WebAccessibilityObject.h
  10. WebAccessibilityRole.h
  11. WebActiveWheelFlingParameters.h
  12. WebApplicationCacheHost.h
  13. WebApplicationCacheHostClient.h
  14. WebArrayBuffer.h
  15. WebArrayBufferView.h
  16. WebAudioSourceProvider.h
  17. WebAudioSourceProviderClient.h
  18. WebAutofillClient.h
  19. WebBatteryStatus.h
  20. WebBatteryStatusClient.h
  21. WebBindings.h
  22. WebBlob.h
  23. WebCache.h
  24. WebCachedURLRequest.h
  25. WebColorChooser.h
  26. WebColorChooserClient.h
  27. WebColorName.h
  28. WebCommonWorkerClient.h
  29. WebCompositionUnderline.h
  30. WebCompositorInputHandler.h
  31. WebCompositorInputHandlerClient.h
  32. WebConsoleMessage.h
  33. WebContentDetectionResult.h
  34. WebContentSecurityPolicy.h
  35. WebContextMenuData.h
  36. WebCrossOriginPreflightResultCache.h
  37. WebCursorInfo.h
  38. WebDatabase.h
  39. WebDatabaseObserver.h
  40. WebDataSource.h
  41. WebDateTimeChooserCompletion.h
  42. WebDateTimeChooserParams.h
  43. WebDateTimeInputType.h
  44. WebDeviceOrientation.h
  45. WebDeviceOrientationClient.h
  46. WebDeviceOrientationClientMock.h
  47. WebDeviceOrientationController.h
  48. WebDevToolsAgent.h
  49. WebDevToolsAgentClient.h
  50. WebDevToolsFrontend.h
  51. WebDevToolsFrontendClient.h
  52. WebDocument.h
  53. WebDocumentType.h
  54. WebDOMActivityLogger.h
  55. WebDOMCustomEvent.h
  56. WebDOMEvent.h
  57. WebDOMEventListener.h
  58. WebDOMMessageEvent.h
  59. WebDOMMouseEvent.h
  60. WebDOMMutationEvent.h
  61. WebDOMStringList.h
  62. WebDraggableRegion.h
  63. WebDragOperation.h
  64. WebDragStatus.h
  65. WebEditingAction.h
  66. WebElement.h
  67. WebExceptionCode.h
  68. WebExternalPopupMenu.h
  69. WebExternalPopupMenuClient.h
  70. WebFileChooserCompletion.h
  71. WebFileChooserParams.h
  72. WebFileError.h
  73. WebFileInfo.h
  74. WebFileSystemCallbacks.h
  75. WebFileSystemEntry.h
  76. WebFileUtilities.h
  77. WebFileWriter.h
  78. WebFileWriterClient.h
  79. WebFindOptions.h
  80. WebFont.h
  81. WebFontCache.h
  82. WebFontDescription.h
  83. WebFormControlElement.h
  84. WebFormElement.h
  85. WebFrame.h
  86. WebFrameClient.h
  87. WebGeolocationClient.h
  88. WebGeolocationClientMock.h
  89. WebGeolocationController.h
  90. WebGeolocationError.h
  91. WebGeolocationPermissionRequest.h
  92. WebGeolocationPermissionRequestManager.h
  93. WebGeolocationPosition.h
  94. WebGlyphCache.h
  95. WebHelperPlugin.h
  96. WebHistoryItem.h
  97. WebHitTestResult.h
  98. WebIconLoadingCompletion.h
  99. WebIconURL.h
  100. WebIDBCallbacks.h
  101. WebIDBCursor.h
  102. WebIDBDatabase.h
  103. WebIDBDatabaseCallbacks.h
  104. WebIDBDatabaseError.h
  105. WebIDBDatabaseException.h
  106. WebIDBFactory.h
  107. WebIDBKey.h
  108. WebIDBKeyPath.h
  109. WebIDBKeyRange.h
  110. WebIDBMetadata.h
  111. WebImageDecoder.h
  112. WebInputElement.h
  113. WebInputEvent.h
  114. WebKit.h
  115. WebLabelElement.h
  116. WebMediaPlayer.h
  117. WebMediaPlayerAction.h
  118. WebMediaPlayerClient.h
  119. WebMediaSource.h
  120. WebMediaSourceClient.h
  121. WebMediaStreamRegistry.h
  122. WebMemoryUsageInfo.h
  123. WebMenuItemInfo.h
  124. WebMessagePortChannel.h
  125. WebMessagePortChannelClient.h
  126. WebNavigationPolicy.h
  127. WebNavigationType.h
  128. WebNetworkStateNotifier.h
  129. WebNode.h
  130. WebNodeCollection.h
  131. WebNodeList.h
  132. WebNotification.h
  133. WebNotificationPermissionCallback.h
  134. WebNotificationPresenter.h
  135. WebOptionElement.h
  136. WebPageOverlay.h
  137. WebPagePopup.h
  138. WebPageSerializer.h
  139. WebPageSerializerClient.h
  140. WebPageVisibilityState.h
  141. WebPasswordFormData.h
  142. WebPerformance.h
  143. WebPermissionClient.h
  144. WebPlugin.h
  145. WebPluginAction.h
  146. WebPluginContainer.h
  147. WebPluginDocument.h
  148. WebPluginListBuilder.h
  149. WebPluginParams.h
  150. WebPluginScrollbar.h
  151. WebPluginScrollbarClient.h
  152. WebPopupMenu.h
  153. WebPopupMenuInfo.h
  154. WebPopupType.h
  155. WebPrerendererClient.h
  156. WebPrintParams.h
  157. WebPrintScalingOption.h
  158. WebRange.h
  159. WebRegularExpression.h
  160. WebRuntimeFeatures.h
  161. WebScopedMicrotaskSuppression.h
  162. WebScopedUserGesture.h
  163. WebScreenInfo.h
  164. WebScriptController.h
  165. WebScriptSource.h
  166. WebSearchableFormData.h
  167. WebSecurityOrigin.h
  168. WebSecurityPolicy.h
  169. WebSelectElement.h
  170. WebSerializedScriptValue.h
  171. WebSettings.h
  172. WebSharedWorker.h
  173. WebSharedWorkerClient.h
  174. WebSharedWorkerRepository.h
  175. WebSocket.h
  176. WebSocketClient.h
  177. WebSourceBuffer.h
  178. WebSpeechGrammar.h
  179. WebSpeechInputController.h
  180. WebSpeechInputListener.h
  181. WebSpeechInputResult.h
  182. WebSpeechRecognitionHandle.h
  183. WebSpeechRecognitionParams.h
  184. WebSpeechRecognitionResult.h
  185. WebSpeechRecognizer.h
  186. WebSpeechRecognizerClient.h
  187. WebSpellCheckClient.h
  188. WebStorageEventDispatcher.h
  189. WebStorageNamespace.h
  190. WebStorageQuotaCallbacks.h
  191. WebStorageQuotaError.h
  192. WebStorageQuotaType.h
  193. WebStreamTextureClient.h
  194. WebSurroundingText.h
  195. WebTestingSupport.h
  196. WebTextAffinity.h
  197. WebTextCaseSensitivity.h
  198. WebTextCheckingCompletion.h
  199. WebTextCheckingResult.h
  200. WebTextCheckingType.h
  201. WebTextDirection.h
  202. WebTextFieldDecoratorClient.h
  203. WebTextInputInfo.h
  204. WebTextInputType.h
  205. WebTextRun.h
  206. WebTimeRange.h
  207. WebTouchPoint.h
  208. WebURLLoaderOptions.h
  209. WebUserGestureIndicator.h
  210. WebUserGestureToken.h
  211. WebUserMediaClient.h
  212. WebUserMediaRequest.h
  213. WebVideoFrame.h
  214. WebView.h
  215. WebViewBenchmarkSupport.h
  216. WebViewClient.h
  217. WebWidget.h
  218. WebWidgetClient.h
  219. WebWindowFeatures.h
  220. WebWorkerInfo.h