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

Issue 2734223002: cc: Don't apply YUV color conversion to non-YUV draw quads (Closed)

Created:
3 years, 9 months ago by ccameron
Modified:
3 years, 9 months ago
Reviewers:
hubbe
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Don't apply YUV color conversion to non-YUV draw quads Some video frames are passed as RGBA textures to the compositor. RGBA conversion is done beforehand in various ways (for 422 textures, this can be done in hardware at texture fetch time, for 420 textures, this has to be done manually in the command buffer bowels). The root problem is that, despite the fact that YUV to RGB conversion has been applied, these textures are tagged with a YUV color space. The full fix is to audit all of the places where TextureMailboxes are populated by media code, and ensure that the ColorSpace attached to the mailbox is the ColorSpace that we will get from texturing out of the resource we create from the TextureMailbox. For the moment, fix this regression by ensuring that no color conversion be applied to any DrawQuads except for YUV video draw quads. BUG=699123 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2734223002 Cr-Commit-Position: refs/heads/master@{#455265} Committed: https://chromium.googlesource.com/chromium/src/+/7100c1b09f742260b741c1cd717b8f449e0f8eb2

Patch Set 1 #

Patch Set 2 : add TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M cc/output/gl_renderer.cc View 1 1 chunk +12 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
ccameron
This works around the bug, to ensure that we don't ship anything broken. I'm going ...
3 years, 9 months ago (2017-03-07 21:16:01 UTC) #3
hubbe
lgtm
3 years, 9 months ago (2017-03-07 21:55:08 UTC) #6
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/2734223002/20001
3 years, 9 months ago (2017-03-07 21:56:28 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 22:47:23 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7100c1b09f742260b741c1cd717b...

Powered by Google App Engine
This is Rietveld 408576698