Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Issue 15004009: cc: Fix readback from non-root layers. (Closed)

Created:
7 years, 7 months ago by danakj
Modified:
7 years, 7 months ago
Reviewers:
jamesr, piman
CC:
chromium-reviews, cc-bugs_chromium.org, backer
Visibility:
Public.

Description

cc: 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 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -84 lines) Patch
M cc/cc_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M cc/output/gl_renderer.h View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -1 line 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 11 chunks +23 lines, -8 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +72 lines, -0 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 4 5 6 8 chunks +46 lines, -72 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_pixel_test.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 2 3 4 5 2 chunks +14 lines, -1 line 0 comments Download
M cc/test/pixel_test.h View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/test/pixel_test.cc View 1 chunk +12 lines, -1 line 0 comments Download
A cc/trees/layer_tree_host_pixeltest_readback.cc View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
danakj
7 years, 7 months ago (2013-05-07 21:33:34 UTC) #1
danakj
This depends on green_small.png which cannot be included here for the new tests. It is ...
7 years, 7 months ago (2013-05-07 21:36:14 UTC) #2
danakj
New patch also fixes y-flipping for non-root layers.
7 years, 7 months ago (2013-05-07 22:00:26 UTC) #3
danakj
New pngs are: green small - http://i.imgur.com/nw255b7.png green small with blue corner - http://i.imgur.com/7Omq8aN.png
7 years, 7 months ago (2013-05-07 22:03:28 UTC) #4
piman
Mostly LGTM. https://codereview.chromium.org/15004009/diff/14001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/15004009/diff/14001/cc/output/gl_renderer.cc#newcode2018 cc/output/gl_renderer.cc:2018: bool flipped_y = FlippedFramebuffer(); nit: this is ...
7 years, 7 months ago (2013-05-07 22:35:02 UTC) #5
danakj
https://codereview.chromium.org/15004009/diff/14001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/15004009/diff/14001/cc/output/gl_renderer.cc#newcode2018 cc/output/gl_renderer.cc:2018: bool flipped_y = FlippedFramebuffer(); On 2013/05/07 22:35:02, piman wrote: ...
7 years, 7 months ago (2013-05-07 22:36:18 UTC) #6
piman
https://codereview.chromium.org/15004009/diff/14001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/15004009/diff/14001/cc/output/gl_renderer.cc#newcode2018 cc/output/gl_renderer.cc:2018: bool flipped_y = FlippedFramebuffer(); On 2013/05/07 22:36:19, danakj wrote: ...
7 years, 7 months ago (2013-05-07 22:42:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/15004009/19001
7 years, 7 months ago (2013-05-07 22:45:28 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) cc_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=125405
7 years, 7 months ago (2013-05-07 23:50:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/15004009/35001
7 years, 7 months ago (2013-05-07 23:57:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/15004009/35001
7 years, 7 months ago (2013-05-08 14:39:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/15004009/35001
7 years, 7 months ago (2013-05-08 15:01:44 UTC) #12
commit-bot: I haz the power
Failed to trigger a try job on android_dbg HTTP Error 400: Bad Request
7 years, 7 months ago (2013-05-08 19:24:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/15004009/58001
7 years, 7 months ago (2013-05-08 19:24:42 UTC) #14
danakj
7 years, 7 months ago (2013-05-08 23:52:19 UTC) #15
Message was sent while issue was closed.
Committed patchset #10 manually as r199055 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698