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

Issue 2558393002: cc: Only use single quad pass optimization when quad rect matches pass rect (Closed)

Created:
4 years ago by ajuma
Modified:
4 years ago
Reviewers:
ericrk
CC:
chromium-reviews, cc-bugs_chromium.org, enne (OOO)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Only use single quad pass optimization when quad rect matches pass rect GLRenderer::CanPassBeDrawnDirectly checks if a pass' only quad is positioned at (0, 0) in pass space, but this doesn't guarantee that the quad will be positioned at the top left corner of the pass' texture, since the pass' own texture isn't necessarily positioned at (0, 0) in pass space. In this situation, using the quad's texture in place of the pass's texture results in incorrect positioning of the quad's contents. To fix this, this CL adds a check that the quad rect matches the pass' output rect. BUG=671773 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/7faf8fc181b5d98c6007495a8944ff0be3aeeb90 Cr-Commit-Position: refs/heads/master@{#437402}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -2 lines) Patch
M cc/output/gl_renderer.cc View 1 chunk +4 lines, -2 lines 0 comments Download
A cc/test/data/translated_blue_green_alpha_gl.png View Binary file 0 comments Download
A cc/test/data/translated_blue_green_alpha_sw.png View Binary file 0 comments Download
M cc/trees/layer_tree_host_pixeltest_filters.cc View 2 chunks +53 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
ajuma
4 years ago (2016-12-08 22:34:19 UTC) #9
ericrk
LGTM - thanks for taking care of this!
4 years ago (2016-12-08 23:44:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2558393002/1
4 years ago (2016-12-09 00:00:13 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-09 01:17:48 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-09 01:20:28 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7faf8fc181b5d98c6007495a8944ff0be3aeeb90
Cr-Commit-Position: refs/heads/master@{#437402}

Powered by Google App Engine
This is Rietveld 408576698