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

Issue 648293006: cc: turn on distance field text on animated layers (Closed)

Created:
6 years, 2 months ago by hendrikw
Modified:
6 years, 2 months ago
Reviewers:
ajuma, reveman, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: turn on distance field text on animated layers PictureLayerImpl * Rerasterize on every animated frame * pass animated flag to picture pile PicturePileImpl * Store has_transform_animated, used as a transport to get data to GPU's RasterBufferImpl ResourceProvider * Provide a method to recreate the surface with the correct dff flag. * Provide a method in the lock to set the dff setting * This has the side effect that the surface may be created twice for a new animated layer, but surface creation is cheap, I don't see this as a huge issue RasterBufferImpl * In playback, call the method on the lock to assign the dff setting that comes from the picture pile. BUG=372391 Committed: https://crrev.com/6a15e256edc14ad5c6f8d088a82c2f0b421a2d3d Cr-Commit-Position: refs/heads/master@{#300626}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address review comments #

Total comments: 1

Patch Set 3 : Fix a few small issues #

Patch Set 4 : moved dcheck #

Patch Set 5 : "removed test code" #

Total comments: 4

Patch Set 6 : Moved dff setting from rasterprovider to gpurasterpool #

Total comments: 5

Patch Set 7 : Improve comment #

Patch Set 8 : merge #

Patch Set 9 : When we render with text we render at content scale - fix test #

Patch Set 10 : One more test :) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -230 lines) Patch
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -13 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -6 lines 0 comments Download
M cc/layers/tiled_layer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 6 7 14 chunks +14 lines, -28 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -12 lines 0 comments Download
M cc/output/renderer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/output/software_renderer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/gpu_raster_worker_pool.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -2 lines 0 comments Download
M cc/resources/gpu_raster_worker_pool.cc View 1 2 3 4 5 6 7 4 chunks +27 lines, -9 lines 0 comments Download
M cc/resources/picture_layer_tiling_perftest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/picture_layer_tiling_set_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -9 lines 0 comments Download
M cc/resources/picture_pile_impl.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M cc/resources/picture_pile_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M cc/resources/prioritized_resource_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -6 lines 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -5 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 6 7 5 chunks +4 lines, -9 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 6 chunks +42 lines, -39 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 5 6 7 27 chunks +27 lines, -54 lines 0 comments Download
M cc/resources/resource_update_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/scoped_resource_unittest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -6 lines 0 comments Download
M cc/resources/video_resource_updater_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M cc/surfaces/display.cc View 1 2 3 4 5 2 chunks +1 line, -3 lines 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 34 (9 generated)
hendrikw
PTAL, thanks
6 years, 2 months ago (2014-10-15 16:34:01 UTC) #2
reveman
https://codereview.chromium.org/648293006/diff/1/cc/resources/picture_pile_impl.h File cc/resources/picture_pile_impl.h (right): https://codereview.chromium.org/648293006/diff/1/cc/resources/picture_pile_impl.h#newcode61 cc/resources/picture_pile_impl.h:61: bool has_transform_animated() const { return has_transform_animated_; } "transform animated" ...
6 years, 2 months ago (2014-10-15 17:34:09 UTC) #3
reveman
This looks good in general. Just address some of my comments and I think this ...
6 years, 2 months ago (2014-10-15 17:36:29 UTC) #4
ajuma
https://codereview.chromium.org/648293006/diff/20001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (left): https://codereview.chromium.org/648293006/diff/20001/cc/layers/picture_layer_impl.cc#oldcode1236 cc/layers/picture_layer_impl.cc:1236: return false; We still need this check, since we ...
6 years, 2 months ago (2014-10-17 13:36:24 UTC) #6
hendrikw
Addressed comments. PTAL thanks
6 years, 2 months ago (2014-10-20 16:31:09 UTC) #7
reveman
https://codereview.chromium.org/648293006/diff/80001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/648293006/diff/80001/cc/resources/gpu_raster_worker_pool.cc#newcode41 cc/resources/gpu_raster_worker_pool.cc:41: picture_pile->will_be_used_for_transform_animation(); This line should also take LayerTreeSettings::use_distance_field_text into account. ...
6 years, 2 months ago (2014-10-20 18:38:30 UTC) #8
hendrikw
PTAL, moved dff to GRP
6 years, 2 months ago (2014-10-20 19:58:49 UTC) #9
reveman
https://codereview.chromium.org/648293006/diff/100001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/648293006/diff/100001/cc/resources/gpu_raster_worker_pool.cc#newcode43 cc/resources/gpu_raster_worker_pool.cc:43: use_distance_field_text_ || && ?
6 years, 2 months ago (2014-10-20 20:27:13 UTC) #10
hendrikw
https://codereview.chromium.org/648293006/diff/100001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/648293006/diff/100001/cc/resources/gpu_raster_worker_pool.cc#newcode43 cc/resources/gpu_raster_worker_pool.cc:43: use_distance_field_text_ || On 2014/10/20 20:27:13, reveman wrote: > && ...
6 years, 2 months ago (2014-10-20 20:34:11 UTC) #11
reveman
https://codereview.chromium.org/648293006/diff/100001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/648293006/diff/100001/cc/resources/gpu_raster_worker_pool.cc#newcode43 cc/resources/gpu_raster_worker_pool.cc:43: use_distance_field_text_ || On 2014/10/20 20:34:11, Hendrik wrote: > On ...
6 years, 2 months ago (2014-10-20 21:04:26 UTC) #12
hendrikw
On 2014/10/20 21:04:26, reveman wrote: > https://codereview.chromium.org/648293006/diff/100001/cc/resources/gpu_raster_worker_pool.cc > File cc/resources/gpu_raster_worker_pool.cc (right): > > https://codereview.chromium.org/648293006/diff/100001/cc/resources/gpu_raster_worker_pool.cc#newcode43 > ...
6 years, 2 months ago (2014-10-20 21:45:27 UTC) #13
reveman
On 2014/10/20 21:45:27, Hendrik wrote: > On 2014/10/20 21:04:26, reveman wrote: > > > https://codereview.chromium.org/648293006/diff/100001/cc/resources/gpu_raster_worker_pool.cc ...
6 years, 2 months ago (2014-10-20 22:51:31 UTC) #14
vmpstr
lgtm, but just to cofirm: once enabled for a pile, this flag will always stay ...
6 years, 2 months ago (2014-10-20 23:17:05 UTC) #15
vmpstr
lgtm, but just to cofirm: once enabled for a pile, this flag will always stay ...
6 years, 2 months ago (2014-10-20 23:17:07 UTC) #16
hendrikw
Correct. This is to prevent the text from changing appearance once the animation stops. I ...
6 years, 2 months ago (2014-10-20 23:23:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/648293006/120001
6 years, 2 months ago (2014-10-20 23:26:32 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/81373) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/71019) win_gpu ...
6 years, 2 months ago (2014-10-20 23:34:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/648293006/140001
6 years, 2 months ago (2014-10-21 22:08:14 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/20573) win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/24435) win_chromium_x64_rel_swarming ...
6 years, 2 months ago (2014-10-21 23:52:50 UTC) #25
hendrikw
Fixed a gpu raster test that was ensuring that we render to max animation scale ...
6 years, 2 months ago (2014-10-22 00:22:34 UTC) #26
vmpstr
still lgtm
6 years, 2 months ago (2014-10-22 00:23:31 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/648293006/160001
6 years, 2 months ago (2014-10-22 00:24:24 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/648293006/180001
6 years, 2 months ago (2014-10-22 00:33:21 UTC) #32
commit-bot: I haz the power
Committed patchset #10 (id:180001)
6 years, 2 months ago (2014-10-22 02:46:38 UTC) #33
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 04:05:41 UTC) #34
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/6a15e256edc14ad5c6f8d088a82c2f0b421a2d3d
Cr-Commit-Position: refs/heads/master@{#300626}

Powered by Google App Engine
This is Rietveld 408576698