Chromium Code Reviews
Descriptioncc: Fix readback from non-root layers.
The readback was assuming that it was reading from the root render
pass, so using the full viewport size when flipping the result,
but it should use the size of the currently bound framebuffer. Also,
it should not flip if the readback is already in the correct
orientation.
Tests:
LayerTreeHostReadbackPixelTest.ReadbackRootLayer
LayerTreeHostReadbackPixelTest.ReadbackRootLayerWithChild
LayerTreeHostReadbackPixelTest.ReadbackNonRootLayer
LayerTreeHostReadbackPixelTest.ReadbackSmallNonRootLayer
LayerTreeHostReadbackPixelTest.ReadbackSmallNonRootLayerWithChild
RendererPixelTest.SimpleGreenRect_NonRootRenderPass
R=piman@chromium.org
BUG=179896
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199055
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Add the readback test file #Patch Set 4 : less headers #Patch Set 5 : #Patch Set 6 : #
Total comments: 5
Patch Set 7 : Add one more test #Patch Set 8 : #Patch Set 9 : Allow UseRenderSurface on the current surface #Patch Set 10 : #
Messages
Total messages: 15 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||