[Chromium] Fix byte ordering bugs reading back WebGL canvases' content on Android
https://bugs.webkit.org/show_bug.cgi?id=111661

Reviewed by James Robinson.

Source/Platform:

* chromium/public/WebGraphicsContext3D.h:
(WebGraphicsContext3D):
    Better documented contract of readBackFrameBuffer.

Source/WebCore:

No new tests; covered by existing tests. Ran WebGL conformance
tests on Android and desktop Linux to verify fix.

* platform/chromium/support/GraphicsContext3DChromium.cpp:
(WebCore::GraphicsContext3D::paintRenderingResultsToImageData):
    Avoid incorrect byte swap on Android and other OSs which don't
    swizzle R and B channels.


git-svn-id: https://svn.webkit.org/repository/webkit/trunk/Source/Platform/chromium/public@145027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 file changed
tree: 1713ed90078b2e0147b0801d959cae1c4299ddf9
  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. WebFloatSize.h
  43. WebGamepad.h
  44. WebGamepads.h
  45. WebGestureCurve.h
  46. WebGestureCurveTarget.h
  47. WebGraphicsContext3D.h
  48. WebGraphicsMemoryAllocation.h
  49. WebGraphicsMemoryStats.h
  50. WebHTTPBody.h
  51. WebHTTPHeaderVisitor.h
  52. WebHTTPLoadInfo.h
  53. WebHyphenator.h
  54. WebImage.h
  55. WebImageLayer.h
  56. WebInputHandler.h
  57. WebInputHandlerClient.h
  58. WebIOSurfaceLayer.h
  59. WebLayer.h
  60. WebLayerScrollClient.h
  61. WebLayerTreeView.h
  62. WebLayerTreeViewClient.h
  63. WebLocalizedString.h
  64. WebMediaConstraints.h
  65. WebMediaStream.h
  66. WebMediaStreamCenter.h
  67. WebMediaStreamCenterClient.h
  68. WebMediaStreamSource.h
  69. WebMediaStreamSourcesRequest.h
  70. WebMediaStreamTrack.h
  71. WebMessagePortChannel.h
  72. WebMessagePortChannelClient.h
  73. WebMimeRegistry.h
  74. WebNonCopyable.h
  75. WebPluginListBuilder.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. WebRTCDataChannelHandler.h
  86. WebRTCDataChannelHandlerClient.h
  87. WebRTCDTMFSenderHandler.h
  88. WebRTCDTMFSenderHandlerClient.h
  89. WebRTCICECandidate.h
  90. WebRTCPeerConnectionHandler.h
  91. WebRTCPeerConnectionHandlerClient.h
  92. WebRTCSessionDescription.h
  93. WebRTCSessionDescriptionRequest.h
  94. WebRTCStatsRequest.h
  95. WebRTCStatsResponse.h
  96. WebRTCVoidRequest.h
  97. WebScreenInfo.h
  98. WebScrollbar.h
  99. WebScrollbarLayer.h
  100. WebScrollbarThemeGeometry.h
  101. WebScrollbarThemePainter.h
  102. WebSize.h
  103. WebSocketStreamError.h
  104. WebSocketStreamHandle.h
  105. WebSocketStreamHandleClient.h
  106. WebSolidColorLayer.h
  107. WebStorageArea.h
  108. WebStorageNamespace.h
  109. WebString.h
  110. WebThread.h
  111. WebThreadSafeData.h
  112. WebTransformAnimationCurve.h
  113. WebTransformationMatrix.h
  114. WebTransformKeyframe.h
  115. WebTransformOperations.h
  116. WebUnitTestSupport.h
  117. WebURL.h
  118. WebURLError.h
  119. WebURLLoader.h
  120. WebURLLoaderClient.h
  121. WebURLLoadTiming.h
  122. WebURLRequest.h
  123. WebURLResponse.h
  124. WebVector.h
  125. WebVideoFrame.h
  126. WebVideoFrameProvider.h
  127. WebVideoLayer.h
  128. WebWorkerRunLoop.h