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

Issue 913203006: cc: Calculate "can use lcd text" on the compositor thread (Closed)

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

Description

cc: Calculate "can use lcd text" on the compositor thread Property trees don't calculate lcd text settings on the main thread, so to move to them, these calculations need to move to the compositor thread. There's nothing tied to the main thread, other than only changing lcd text during a commit. This restriction avoids the pitfall of tile versions (i.e. changing out content in place with different settings) by only changing content and invalidating during a commit, which already waits for rasterization to occur before displaying that content. That restriction is satisfied by only updating lcd text on picture layers during an update on the sync tree on new frame numbers. Committed: https://crrev.com/af5bda38151cf75f19bb8434b4aa0653bdfccc7e Cr-Commit-Position: refs/heads/master@{#316955}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address review comments #

Total comments: 2

Patch Set 3 : Remove histogram #

Patch Set 4 : Param passed to UDP #

Total comments: 6

Patch Set 5 : Address review comments #

Patch Set 6 : Fix perf test compilation errors #

Patch Set 7 : Remove tuple to fix Android compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -308 lines) Patch
M cc/layers/content_layer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/layers/content_layer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/layers/layer.h View 2 chunks +0 lines, -3 lines 0 comments Download
M cc/layers/layer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/layers/picture_layer.h View 3 chunks +0 lines, -4 lines 0 comments Download
M cc/layers/picture_layer.cc View 5 chunks +6 lines, -22 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 1 chunk +30 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl_perftest.cc View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 25 chunks +44 lines, -30 lines 0 comments Download
M cc/resources/display_list_raster_source.h View 1 2 chunks +7 lines, -3 lines 0 comments Download
M cc/resources/display_list_raster_source.cc View 4 chunks +32 lines, -8 lines 0 comments Download
M cc/resources/display_list_recording_source.h View 2 chunks +2 lines, -3 lines 0 comments Download
M cc/resources/display_list_recording_source.cc View 4 chunks +4 lines, -11 lines 0 comments Download
M cc/resources/picture_pile.h View 3 chunks +3 lines, -5 lines 0 comments Download
M cc/resources/picture_pile.cc View 5 chunks +6 lines, -20 lines 0 comments Download
M cc/resources/picture_pile_impl.h View 3 chunks +5 lines, -2 lines 0 comments Download
M cc/resources/picture_pile_impl.cc View 4 chunks +33 lines, -5 lines 0 comments Download
M cc/resources/picture_pile_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/resources/raster_source.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/resources/recording_source.h View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/tile_manager_perftest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/fake_picture_pile.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/fake_picture_pile.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/fake_picture_pile_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host.h View 1 1 chunk +0 lines, -14 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 3 chunks +0 lines, -36 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 13 chunks +50 lines, -46 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 5 chunks +17 lines, -52 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 6 chunks +30 lines, -4 lines 0 comments Download
M cc/trees/occlusion_tracker_perftest.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (8 generated)
enne (OOO)
5 years, 10 months ago (2015-02-18 00:23:58 UTC) #2
danakj
https://codereview.chromium.org/913203006/diff/1/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/913203006/diff/1/cc/layers/picture_layer_impl.cc#newcode582 cc/layers/picture_layer_impl.cc:582: UpdateRasterSource(new_raster_source, &invalidation, nullptr); what if there is a pending ...
5 years, 10 months ago (2015-02-18 01:24:10 UTC) #3
danakj
https://codereview.chromium.org/913203006/diff/1/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/913203006/diff/1/cc/trees/layer_tree_impl.cc#newcode586 cc/trees/layer_tree_impl.cc:586: // It'd be ideal if this could be done ...
5 years, 10 months ago (2015-02-18 01:25:52 UTC) #4
enne (OOO)
https://codereview.chromium.org/913203006/diff/1/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/913203006/diff/1/cc/layers/picture_layer_impl.cc#newcode582 cc/layers/picture_layer_impl.cc:582: UpdateRasterSource(new_raster_source, &invalidation, nullptr); On 2015/02/18 01:24:10, danakj wrote: > ...
5 years, 10 months ago (2015-02-18 02:20:02 UTC) #5
danakj
Ah I missed that in my quick look thru. Thanks https://codereview.chromium.org/913203006/diff/1/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/913203006/diff/1/cc/layers/picture_layer_impl.cc#newcode582 ...
5 years, 10 months ago (2015-02-18 02:28:13 UTC) #6
Ian Vollick
lg2m % Dana. This seems pretty reasonable. IIUC, raster sources now have the ability to ...
5 years, 10 months ago (2015-02-18 09:12:10 UTC) #7
enne (OOO)
https://codereview.chromium.org/913203006/diff/1/cc/resources/display_list_raster_source.h File cc/resources/display_list_raster_source.h (right): https://codereview.chromium.org/913203006/diff/1/cc/resources/display_list_raster_source.h#newcode59 cc/resources/display_list_raster_source.h:59: explicit DisplayListRasterSource(const DisplayListRecordingSource* other, On 2015/02/18 09:12:10, vollick wrote: ...
5 years, 10 months ago (2015-02-18 19:22:23 UTC) #8
enne (OOO)
PTAL On 2015/02/18 at 09:12:10, vollick wrote: > This seems pretty reasonable. IIUC, raster sources ...
5 years, 10 months ago (2015-02-18 19:43:05 UTC) #9
danakj
https://codereview.chromium.org/913203006/diff/1/cc/test/fake_picture_pile_impl.cc File cc/test/fake_picture_pile_impl.cc (right): https://codereview.chromium.org/913203006/diff/1/cc/test/fake_picture_pile_impl.cc#newcode24 cc/test/fake_picture_pile_impl.cc:24: : PicturePileImpl(other, true), /* can_use_lcd_text */ ? https://codereview.chromium.org/913203006/diff/20001/cc/trees/layer_tree_impl.cc File ...
5 years, 10 months ago (2015-02-18 19:54:48 UTC) #10
Ian Vollick
https://codereview.chromium.org/913203006/diff/1/cc/resources/display_list_raster_source.h File cc/resources/display_list_raster_source.h (right): https://codereview.chromium.org/913203006/diff/1/cc/resources/display_list_raster_source.h#newcode59 cc/resources/display_list_raster_source.h:59: explicit DisplayListRasterSource(const DisplayListRecordingSource* other, On 2015/02/18 19:22:23, enne wrote: ...
5 years, 10 months ago (2015-02-18 19:58:14 UTC) #11
enne (OOO)
https://codereview.chromium.org/913203006/diff/1/cc/test/fake_picture_pile_impl.cc File cc/test/fake_picture_pile_impl.cc (right): https://codereview.chromium.org/913203006/diff/1/cc/test/fake_picture_pile_impl.cc#newcode24 cc/test/fake_picture_pile_impl.cc:24: : PicturePileImpl(other, true), On 2015/02/18 19:54:47, danakj wrote: > ...
5 years, 10 months ago (2015-02-18 19:59:05 UTC) #12
enne (OOO)
+isherman for histogram removal https://codereview.chromium.org/913203006/diff/1/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (left): https://codereview.chromium.org/913203006/diff/1/cc/trees/layer_tree_host.h#oldcode463 cc/trees/layer_tree_host.h:463: LCDTextMetrics lcd_text_metrics_; On 2015/02/18 19:58:13, ...
5 years, 10 months ago (2015-02-18 20:01:45 UTC) #14
danakj
On 2015/02/18 19:59:05, enne wrote: > https://codereview.chromium.org/913203006/diff/1/cc/test/fake_picture_pile_impl.cc > File cc/test/fake_picture_pile_impl.cc (right): > > https://codereview.chromium.org/913203006/diff/1/cc/test/fake_picture_pile_impl.cc#newcode24 > ...
5 years, 10 months ago (2015-02-18 20:01:50 UTC) #15
enne (OOO)
> Well, in this case you actually want it to only run in that one ...
5 years, 10 months ago (2015-02-18 21:29:45 UTC) #16
enne (OOO)
On 2015/02/18 at 20:01:45, enne wrote: > +isherman for histogram removal isherman: If a histogram ...
5 years, 10 months ago (2015-02-18 21:30:26 UTC) #17
Ilya Sherman
Please mark the histograms as <obsolete> rather than removing them from the XML file. This ...
5 years, 10 months ago (2015-02-18 21:44:00 UTC) #18
danakj
https://codereview.chromium.org/913203006/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/913203006/diff/60001/cc/trees/layer_tree_host_impl.cc#newcode311 cc/trees/layer_tree_host_impl.cc:311: bool update_lcd_text = true; Mind leaving a comment why ...
5 years, 10 months ago (2015-02-18 21:51:46 UTC) #19
enne (OOO)
Changed histograms to just be deprecated and addressed other comments. PTAL. https://codereview.chromium.org/913203006/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): ...
5 years, 10 months ago (2015-02-18 22:16:08 UTC) #20
danakj
LGTM
5 years, 10 months ago (2015-02-18 22:20:17 UTC) #21
Ilya Sherman
Histograms LGTM. Thanks :)
5 years, 10 months ago (2015-02-18 22:20:37 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/913203006/80001
5 years, 10 months ago (2015-02-18 22:28:31 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/60841)
5 years, 10 months ago (2015-02-18 22:37:39 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/913203006/100001
5 years, 10 months ago (2015-02-18 23:18:51 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_rel_tests_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_rel_tests_recipe/builds/3177)
5 years, 10 months ago (2015-02-18 23:35:08 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/913203006/120001
5 years, 10 months ago (2015-02-18 23:44:03 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-19 01:28:02 UTC) #34
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 01:28:46 UTC) #35
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/af5bda38151cf75f19bb8434b4aa0653bdfccc7e
Cr-Commit-Position: refs/heads/master@{#316955}

Powered by Google App Engine
This is Rietveld 408576698