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

Issue 2336853002: cc: Plumb device color space through to rasterization (Closed)

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

Description

cc: Plumb device color space through to rasterization Add plumbing from LayerTree to LayerTreeImpl. Grab the color space from the LayerTreeImpl in raster task creation in the TileManager by using the TileManagerClient interface. Note that while this is plumbing a valid gfx::ColorSpace, this still has no impact on behavior, because the gfx::ColorSpace to SkColorSpace conversion isn't in place yet. Once that is in place, tests to query the tile resources' color spaces can be added. BUG=44872 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/99961cb9d362a5499e3b7455d16c760db78c2108 Cr-Commit-Position: refs/heads/master@{#419525}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use suggested approach #

Total comments: 10

Patch Set 3 : Incorporate feedback #

Patch Set 4 : Rebase #

Total comments: 1

Patch Set 5 : Move invalidation to LayerTree::SetDeviceColorSpace #

Patch Set 6 : Remove redundant commit #

Total comments: 2

Patch Set 7 : Remove damage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -7 lines) Patch
M cc/test/fake_tile_manager_client.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/fake_tile_manager_client.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M cc/tiles/tile_manager.h View 1 2 3 3 chunks +7 lines, -2 lines 0 comments Download
M cc/tiles/tile_manager.cc View 1 2 3 4 chunks +6 lines, -3 lines 0 comments Download
M cc/trees/layer_tree.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M cc/trees/layer_tree.cc View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 1 chunk +123 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 50 (31 generated)
ccameron
https://codereview.chromium.org/2336853002/diff/1/cc/tiles/tile.h File cc/tiles/tile.h (right): https://codereview.chromium.org/2336853002/diff/1/cc/tiles/tile.h#newcode120 cc/tiles/tile.h:120: const gfx::ColorSpace& color_space, This didn't seem appropriate to have ...
4 years, 3 months ago (2016-09-12 23:44:24 UTC) #2
ccameron
ptal: I've updated this to the suggested structure. I also ripped out the color space ...
4 years, 3 months ago (2016-09-13 23:34:16 UTC) #7
ccameron
Ping
4 years, 3 months ago (2016-09-14 22:31:49 UTC) #12
vmpstr
(sorry for late review) https://codereview.chromium.org/2336853002/diff/20001/cc/test/fake_tile_manager_client.h File cc/test/fake_tile_manager_client.h (right): https://codereview.chromium.org/2336853002/diff/20001/cc/test/fake_tile_manager_client.h#newcode32 cc/test/fake_tile_manager_client.h:32: gfx::ColorSpace tile_color_space_; Make this private, ...
4 years, 3 months ago (2016-09-14 23:00:43 UTC) #13
ccameron
Thanks -- updated https://codereview.chromium.org/2336853002/diff/20001/cc/test/fake_tile_manager_client.h File cc/test/fake_tile_manager_client.h (right): https://codereview.chromium.org/2336853002/diff/20001/cc/test/fake_tile_manager_client.h#newcode32 cc/test/fake_tile_manager_client.h:32: gfx::ColorSpace tile_color_space_; On 2016/09/14 23:00:43, vmpstr ...
4 years, 3 months ago (2016-09-15 07:13:42 UTC) #21
vmpstr
https://codereview.chromium.org/2336853002/diff/60001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2336853002/diff/60001/cc/trees/layer_tree_impl.cc#newcode860 cc/trees/layer_tree_impl.cc:860: ReleaseResources(); Hmm... Have you tested this with something like ...
4 years, 3 months ago (2016-09-15 18:44:40 UTC) #24
ccameron
On 2016/09/15 18:44:40, vmpstr wrote: > https://codereview.chromium.org/2336853002/diff/60001/cc/trees/layer_tree_impl.cc > File cc/trees/layer_tree_impl.cc (right): > > https://codereview.chromium.org/2336853002/diff/60001/cc/trees/layer_tree_impl.cc#newcode860 > ...
4 years, 3 months ago (2016-09-15 20:53:30 UTC) #26
vmpstr
Looks good, just one question https://codereview.chromium.org/2336853002/diff/100001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2336853002/diff/100001/cc/trees/layer_tree_impl.cc#newcode861 cc/trees/layer_tree_impl.cc:861: layer_tree_host_impl_->SetFullViewportDamage(); Do you need ...
4 years, 3 months ago (2016-09-16 19:01:50 UTC) #30
ccameron
Thanks -- updated https://codereview.chromium.org/2336853002/diff/100001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2336853002/diff/100001/cc/trees/layer_tree_impl.cc#newcode861 cc/trees/layer_tree_impl.cc:861: layer_tree_host_impl_->SetFullViewportDamage(); On 2016/09/16 19:01:49, vmpstr wrote: ...
4 years, 3 months ago (2016-09-16 20:02:38 UTC) #33
vmpstr
lgtm
4 years, 3 months ago (2016-09-16 20:03:53 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/2336853002/120001
4 years, 3 months ago (2016-09-16 20:11:28 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/261367)
4 years, 3 months ago (2016-09-16 20:21:15 UTC) #39
ccameron
oh, enne, can you content/renderer/gpu/OWNERS?
4 years, 3 months ago (2016-09-16 20:23:43 UTC) #40
enne (OOO)
lgtm *stamp noise*
4 years, 3 months ago (2016-09-16 21:02:26 UTC) #41
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/2336853002/120001
4 years, 3 months ago (2016-09-16 23:07:05 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/299556)
4 years, 3 months ago (2016-09-16 23:16:09 UTC) #45
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/2336853002/120001
4 years, 3 months ago (2016-09-19 17:52:36 UTC) #47
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-19 19:15:44 UTC) #48
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 21:02:56 UTC) #50
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/99961cb9d362a5499e3b7455d16c760db78c2108
Cr-Commit-Position: refs/heads/master@{#419525}

Powered by Google App Engine
This is Rietveld 408576698