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

Issue 846453005: cc: Render to destination transform when rendering into a separate surface (Closed)

Created:
5 years, 11 months ago by hendrikw
Modified:
5 years, 11 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Render to destination transform when rendering into a separate surface The existing code would render the separate surface render pass in source space, rather than in target space, which means it would render small, apply the filter, then scale up to target space, which caused scaling artifacts. I've updated the surface transforms to respect combined_transform_scales, which are the x and y axis lengths of combined_transform. I've also written a test that demonstrates the issue, and is fixed by this cl. BUG=411079 Committed: https://crrev.com/c493d268261dfbdda8efdc068b150c25e94905ae Cr-Commit-Position: refs/heads/master@{#313167}

Patch Set 1 #

Patch Set 2 : attempt 2 #

Patch Set 3 : attempt 2 tweak #

Patch Set 4 : remove brackets #

Patch Set 5 : reenable check #

Patch Set 6 : apparently these can be rotated #

Patch Set 7 : simplify a bit #

Patch Set 8 : fix tests #

Patch Set 9 : always use combined_transform_scales for surfaces #

Total comments: 11

Patch Set 10 : address comments #

Patch Set 11 : another png #

Patch Set 12 : remove static #

Total comments: 1

Patch Set 13 : tuple presubmit was wrong - ignoring presubmit #

Patch Set 14 : up fuzziness tolerance for software on windows :( #

Patch Set 15 : simpler test #

Patch Set 16 : remove pngs #

Patch Set 17 : add new test images #

Patch Set 18 : always use fuzzy comparison #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -60 lines) Patch
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -10 lines 0 comments Download
A cc/test/data/scaled_render_surface_layer_gl.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Binary file 0 comments Download
A cc/test/data/scaled_render_surface_layer_sw.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Binary file 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 5 chunks +15 lines, -21 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +34 lines, -28 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_filters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +62 lines, -1 line 0 comments Download

Messages

Total messages: 22 (8 generated)
hendrikw
NOT FOR LANDING - yet! PTAL and let me know if I'm approaching this wrong. ...
5 years, 11 months ago (2015-01-16 22:34:01 UTC) #2
hendrikw
I removed the asymmetry that vollick was concerned with, surprisingly all of the tests still ...
5 years, 11 months ago (2015-01-20 18:06:24 UTC) #3
danakj
https://codereview.chromium.org/846453005/diff/160001/cc/layers/delegated_renderer_layer_impl_unittest.cc File cc/layers/delegated_renderer_layer_impl_unittest.cc (right): https://codereview.chromium.org/846453005/diff/160001/cc/layers/delegated_renderer_layer_impl_unittest.cc#newcode774 cc/layers/delegated_renderer_layer_impl_unittest.cc:774: EXPECT_EQ(gfx::Rect(20, 20, 70, 70).ToString(), Can you explain why the ...
5 years, 11 months ago (2015-01-20 19:58:29 UTC) #4
hendrikw
Everything is working correctly now, PTAL. Please note that I needed separate test result PNGs ...
5 years, 11 months ago (2015-01-21 22:46:03 UTC) #5
danakj
LGTM https://codereview.chromium.org/846453005/diff/220001/cc/trees/layer_tree_host_pixeltest_filters.cc File cc/trees/layer_tree_host_pixeltest_filters.cc (right): https://codereview.chromium.org/846453005/diff/220001/cc/trees/layer_tree_host_pixeltest_filters.cc#newcode376 cc/trees/layer_tree_host_pixeltest_filters.cc:376: filter_layer->SetFilters(filters); I would weakly prefer making this test ...
5 years, 11 months ago (2015-01-22 01:13:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/846453005/220001
5 years, 11 months ago (2015-01-22 22:02:00 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/47750) Try jobs failed on following ...
5 years, 11 months ago (2015-01-22 22:24:44 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/846453005/240001
5 years, 11 months ago (2015-01-22 22:36:23 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/24968) Try jobs failed on following ...
5 years, 11 months ago (2015-01-23 00:25:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/846453005/260001
5 years, 11 months ago (2015-01-23 22:59:33 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/26667)
5 years, 11 months ago (2015-01-24 00:50:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/846453005/340001
5 years, 11 months ago (2015-01-26 22:44:19 UTC) #20
commit-bot: I haz the power
Committed patchset #18 (id:340001)
5 years, 11 months ago (2015-01-26 23:35:43 UTC) #21
commit-bot: I haz the power
5 years, 11 months ago (2015-01-26 23:36:26 UTC) #22
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/c493d268261dfbdda8efdc068b150c25e94905ae
Cr-Commit-Position: refs/heads/master@{#313167}

Powered by Google App Engine
This is Rietveld 408576698