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

Issue 17335011: cc: Allow output readback/copy requests to specify a sub-rect to copy. (Closed)

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

Description

cc: Allow output readback/copy requests to specify a sub-rect to copy. The CopyOutputRequest API is on cc::Layer, so the rect it is given should be in layer space. Also add tests for CompositeAndReadback which no longer had any pixel test coverage in cc/ to ensure that its inputs are correctly applied as device viewport space. Clean up the layer tree pixel test framework by passing the test type (GL/Software cross Bitmap/Texture) as a parameter to RunPixelTest() instead of having tests set a pair of bools. Forces all tests to specify the test type. Tests: LayerTreeHostReadbackPixelTest.ReadbackSubrect_Software LayerTreeHostReadbackPixelTest.ReadbackSubrect_GL_Bitmap LayerTreeHostReadbackPixelTest.ReadbackSubrect_GL LayerTreeHostReadbackPixelTest.ReadbackNonRootLayerSubrect_Software LayerTreeHostReadbackPixelTest.ReadbackNonRootLayerSubrect_GL_Bitmap LayerTreeHostReadbackPixelTest.ReadbackNonRootLayerSubrect_GL LayerTreeHostReadbackDeviceScalePixelTest.ReadbackSubrect_Software LayerTreeHostReadbackDeviceScalePixelTest.ReadbackSubrect_GL LayerTreeHostReadbackDeviceScalePixelTest.ReadbackNonRootLayerSubrect_Software LayerTreeHostReadbackDeviceScalePixelTest.ReadbackNonRootLayerSubrect_GL LayerTreeHostReadbackViaCompositeAndReadbackPixelTest.CompositeAndReadback_Software_1 LayerTreeHostReadbackViaCompositeAndReadbackPixelTest.CompositeAndReadback_Software_2 LayerTreeHostReadbackViaCompositeAndReadbackPixelTest.CompositeAndReadback_GL_1 LayerTreeHostReadbackViaCompositeAndReadbackPixelTest.CompositeAndReadback_GL_2 R=piman BUG=251754 Merged https://codereview.chromium.org/17449014/ and https://codereview.chromium.org/17261009/ into this CL. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207589

Patch Set 1 #

Patch Set 2 : copy-subrect: 3 patches in one #

Unified diffs Side-by-side diffs Delta from patch set Stats (+734 lines, -135 lines) Patch
M cc/cc_tests.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 1 1 chunk +15 lines, -1 line 0 comments Download
M cc/output/copy_output_request.h View 3 chunks +19 lines, -3 lines 0 comments Download
M cc/output/copy_output_request.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M cc/output/software_renderer.cc View 1 chunk +11 lines, -3 lines 0 comments Download
M cc/test/layer_tree_pixel_test.h View 1 2 chunks +12 lines, -3 lines 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 4 chunks +32 lines, -18 lines 0 comments Download
A cc/test/solid_color_content_layer_client.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
A cc/test/solid_color_content_layer_client.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_pixeltest_filters.cc View 1 3 chunks +7 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 7 chunks +19 lines, -17 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_pixeltest_readback.cc View 1 22 chunks +543 lines, -80 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
danakj
7 years, 6 months ago (2013-06-19 19:23:44 UTC) #1
piman
lgtm
7 years, 6 months ago (2013-06-19 19:34:21 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/17335011/1
7 years, 6 months ago (2013-06-19 19:35:54 UTC) #3
commit-bot: I haz the power
Failed to trigger a try job on win_x64_rel HTTP Error 400: Bad Request
7 years, 6 months ago (2013-06-20 02:05:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/17335011/15001
7 years, 6 months ago (2013-06-20 02:05:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/17335011/15001
7 years, 6 months ago (2013-06-20 15:21:34 UTC) #6
commit-bot: I haz the power
7 years, 6 months ago (2013-06-20 21:46:22 UTC) #7
Message was sent while issue was closed.
Change committed as 207589

Powered by Google App Engine
This is Rietveld 408576698