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

Issue 2738713003: color: Ensure that VideoResourceUpdater give consistent colors (Closed)

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

Description

color: Ensure that VideoResourceUpdater give consistent colors Update VideoResourceUpdater to use the right color spaces. In particular, some of the resources from VideoResourceUpdater will have YUV to RGB conversion done ahead of time, so ensure that we don't specify that these resources are in YUV color space (or they will be converted twice, and look wrong). Add lots of DCHECKs to ensure that only YUV draw quads are using YUV resources. In order to use DCHECK_EQ with color spaces, add some helper functions to print color spaces as vaguely-JSON-like strings. While we're adding a function to split off the range-and-YUV part of a color space, use that function to clean up some of the confusing behavior of ColorSpace::GetICCProfile. BUG=699243 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2738713003 Cr-Commit-Position: refs/heads/master@{#456673} Committed: https://chromium.googlesource.com/chromium/src/+/5a5328db5be00d556034c92224f05904e863b410

Patch Set 1 #

Patch Set 2 : Add DCHECK support #

Patch Set 3 : Rebase #

Total comments: 4

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -15 lines) Patch
M cc/output/gl_renderer.cc View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M cc/resources/video_resource_updater.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 12 chunks +15 lines, -9 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_io_surface.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/color_space.h View 1 2 4 chunks +11 lines, -4 lines 0 comments Download
M ui/gfx/color_space.cc View 1 2 4 chunks +58 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (31 generated)
ccameron
ptal -- this is the "better fix" for crbug.com/699123
3 years, 9 months ago (2017-03-09 01:29:58 UTC) #24
ccameron
ping
3 years, 9 months ago (2017-03-13 12:50:17 UTC) #27
hubbe
lgtm https://codereview.chromium.org/2738713003/diff/100001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/2738713003/diff/100001/cc/output/gl_renderer.cc#newcode3000 cc/output/gl_renderer.cc:3000: // The source color space for non-YUV draw ...
3 years, 9 months ago (2017-03-13 17:53:45 UTC) #28
ccameron
Thanks! https://codereview.chromium.org/2738713003/diff/100001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/2738713003/diff/100001/cc/output/gl_renderer.cc#newcode3000 cc/output/gl_renderer.cc:3000: // The source color space for non-YUV draw ...
3 years, 9 months ago (2017-03-13 22:16:55 UTC) #29
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/2738713003/120001
3 years, 9 months ago (2017-03-13 22:18:24 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/382463)
3 years, 9 months ago (2017-03-14 00:18:20 UTC) #34
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/2738713003/120001
3 years, 9 months ago (2017-03-14 10:19:00 UTC) #36
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 11:46:34 UTC) #39
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/5a5328db5be00d556034c92224f0...

Powered by Google App Engine
This is Rietveld 408576698