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

Issue 684543006: cc: Toggle LCD text at raster time instead of record time. (Closed)

Created:
6 years, 1 month ago by danakj
Modified:
6 years ago
CC:
cc-bugs_chromium.org, chromium-reviews, jbroman, pdr., piman, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Toggle LCD text at raster time instead of record time. Always tell blink that it can use LCD text (in future this can stop being passed at all). And at raster time: - If LCD text is allowed initialize SkSurfaceProps with the LegacyHost parameter which will cause skia to pick an LCD text format matching current behaviour. - If LCD is not allowed initialize SkSurfaceProps with an "unknown pixelformat" causing LCD text to not be used. This also removes the need for SK_SUPPORT_LEGACY_TEXTRENDERMODE from resource_provider.cc. R=enne,reveman BUG=430617 Committed: https://crrev.com/ad672f645e82ca677978b097a170c908c614d184 Cr-Commit-Position: refs/heads/master@{#304486} Committed: https://crrev.com/3f76acec92ff4dbd8bc46e7add2f8f7a2cbacfb0 Cr-Commit-Position: refs/heads/master@{#304623}

Patch Set 1 #

Patch Set 2 : lcdraster: gpuraster #

Patch Set 3 : lcdraster: rebase #

Patch Set 4 : lcdraster: removenotify-fixunittest #

Patch Set 5 : lcdraster: fixotherembedders #

Patch Set 6 : lcdraster: bettertestsyay #

Total comments: 12

Patch Set 7 : lcdraster: reviewed #

Patch Set 8 : lcdraster: fixcomment/format #

Patch Set 9 : lcdraster: nits #

Patch Set 10 : lcdraster: restore-the-method #

Patch Set 11 : lcdraster: bool #

Patch Set 12 : lcdraster: header #

Total comments: 2

Patch Set 13 : lcdraster: . #

Patch Set 14 : lcdraster: aura? #

Patch Set 15 : lcdraster: ShouldCreateSurface #

Patch Set 16 : lcdraster: rebase #

Patch Set 17 : lcdraster: yayay #

Patch Set 18 : lcdraster: . #

Total comments: 4

Patch Set 19 : lcdraster: rebase-LCD-and-comment #

Total comments: 8

Patch Set 20 : lcdraster: . #

Patch Set 21 : lcdraster: . #

Patch Set 22 : lcdraster: rebase #

Patch Set 23 : lcdraster: initvar #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -253 lines) Patch
M cc/blink/web_content_layer_impl.h View 1 2 3 4 12 13 14 15 16 1 chunk +0 lines, -1 line 1 comment Download
M cc/blink/web_content_layer_impl.cc View 10 11 12 13 14 15 16 2 chunks +5 lines, -20 lines 0 comments Download
M cc/layers/content_layer.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M cc/layers/content_layer.cc View 1 2 3 4 5 6 3 chunks +1 line, -13 lines 0 comments Download
M cc/layers/content_layer_client.h View 1 2 3 10 11 12 13 14 15 16 1 chunk +0 lines, -4 lines 0 comments Download
M cc/layers/picture_image_layer.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/picture_layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +13 lines, -15 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M cc/resources/gpu_raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/picture_pile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/picture_pile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +25 lines, -12 lines 0 comments Download
M cc/resources/picture_pile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/picture_pile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +6 lines, -0 lines 0 comments Download
M cc/resources/picture_pile_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -3 lines 0 comments Download
M cc/resources/raster_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -0 lines 0 comments Download
M cc/resources/raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +8 lines, -10 lines 0 comments Download
M cc/resources/recording_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +5 lines, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +29 lines, -10 lines 0 comments Download
M cc/test/fake_content_layer_client.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_host_common_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +10 lines, -13 lines 0 comments Download
M cc/test/layer_tree_host_common_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +6 lines, -2 lines 0 comments Download
M cc/test/solid_color_content_layer_client.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +12 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_common_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +9 lines, -14 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +62 lines, -54 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +55 lines, -36 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M ui/compositor/layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 72 (13 generated)
danakj
6 years, 1 month ago (2014-11-11 18:07:59 UTC) #2
danakj
Removed the DidChangeLCDText from the ContentLayerClient and updated the unit test for it.
6 years, 1 month ago (2014-11-11 18:28:53 UTC) #3
reveman
https://codereview.chromium.org/684543006/diff/100001/cc/layers/content_layer.h File cc/layers/content_layer.h (right): https://codereview.chromium.org/684543006/diff/100001/cc/layers/content_layer.h#newcode73 cc/layers/content_layer.h:73: bool ignore_lcd_text_change_; Suggestion that you can ignore if you ...
6 years, 1 month ago (2014-11-11 21:16:49 UTC) #4
danakj
https://codereview.chromium.org/684543006/diff/100001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/684543006/diff/100001/cc/resources/resource_provider.cc#newcode1111 cc/resources/resource_provider.cc:1111: if (!create_surface) { On 2014/11/11 21:16:49, reveman wrote: > ...
6 years, 1 month ago (2014-11-11 21:56:44 UTC) #5
danakj
PTAL https://codereview.chromium.org/684543006/diff/100001/cc/layers/content_layer.h File cc/layers/content_layer.h (right): https://codereview.chromium.org/684543006/diff/100001/cc/layers/content_layer.h#newcode73 cc/layers/content_layer.h:73: bool ignore_lcd_text_change_; On 2014/11/11 21:16:49, reveman wrote: > ...
6 years, 1 month ago (2014-11-12 17:22:11 UTC) #6
danakj
I have restored the method.
6 years, 1 month ago (2014-11-12 21:13:24 UTC) #7
danakj
On 2014/11/12 21:13:24, danakj wrote: > I have restored the method. (re: https://codereview.chromium.org/684653004/#msg16)
6 years, 1 month ago (2014-11-12 21:15:00 UTC) #8
danakj
enne pointed out that we can just use a bool and start with layers allowing ...
6 years, 1 month ago (2014-11-12 21:26:05 UTC) #9
enne (OOO)
https://codereview.chromium.org/684543006/diff/220001/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/684543006/diff/220001/cc/layers/picture_layer.cc#newcode130 cc/layers/picture_layer.cc:130: can_use_lcd_text_for_update_ == LCD_TEXT_STATE_ALLOWED; Er, isn't can_use_lcd_text_for_update_ now a bool?
6 years, 1 month ago (2014-11-12 21:47:30 UTC) #11
danakj
https://codereview.chromium.org/684543006/diff/220001/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/684543006/diff/220001/cc/layers/picture_layer.cc#newcode130 cc/layers/picture_layer.cc:130: can_use_lcd_text_for_update_ == LCD_TEXT_STATE_ALLOWED; On 2014/11/12 21:47:30, enne wrote: > ...
6 years, 1 month ago (2014-11-12 21:47:52 UTC) #12
danakj
On 2014/11/12 21:47:52, danakj wrote: > https://codereview.chromium.org/684543006/diff/220001/cc/layers/picture_layer.cc > File cc/layers/picture_layer.cc (right): > > https://codereview.chromium.org/684543006/diff/220001/cc/layers/picture_layer.cc#newcode130 > ...
6 years, 1 month ago (2014-11-12 21:48:43 UTC) #13
enne (OOO)
Am I right in reading this patch that this removes the lcd text notification from ...
6 years, 1 month ago (2014-11-12 22:19:43 UTC) #14
danakj
On Wed, Nov 12, 2014 at 5:19 PM, <enne@chromium.org> wrote: > Am I right in ...
6 years, 1 month ago (2014-11-12 22:29:36 UTC) #15
enne (OOO)
Can you remind me what the ui::Compositor lcd text situation is? I know that previously ...
6 years, 1 month ago (2014-11-12 22:41:47 UTC) #16
danakj
On Wed, Nov 12, 2014 at 5:41 PM, <enne@chromium.org> wrote: > Can you remind me ...
6 years, 1 month ago (2014-11-12 22:48:02 UTC) #17
danakj
enne, you previously asked me to restore the DidChangeLayerCanUseLcdText method because blink wants to invalidate ...
6 years, 1 month ago (2014-11-12 22:57:52 UTC) #18
enne (OOO)
On 2014/11/12 at 22:57:52, danakj wrote: > enne, you previously asked me to restore the ...
6 years, 1 month ago (2014-11-12 23:04:48 UTC) #19
reveman
https://codereview.chromium.org/684543006/diff/100001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/684543006/diff/100001/cc/resources/resource_provider.cc#newcode1111 cc/resources/resource_provider.cc:1111: if (!create_surface) { On 2014/11/11 21:56:44, danakj wrote: > ...
6 years, 1 month ago (2014-11-13 17:23:16 UTC) #20
danakj
On 2014/11/12 23:04:48, enne wrote: > On 2014/11/12 at 22:57:52, danakj wrote: > > enne, ...
6 years, 1 month ago (2014-11-13 17:30:03 UTC) #21
danakj
On 2014/11/13 17:30:03, danakj wrote: > On 2014/11/12 23:04:48, enne wrote: > > On 2014/11/12 ...
6 years, 1 month ago (2014-11-13 17:30:32 UTC) #23
sky
On 2014/11/13 17:30:32, danakj wrote: > On 2014/11/13 17:30:03, danakj wrote: > > On 2014/11/12 ...
6 years, 1 month ago (2014-11-13 18:29:24 UTC) #24
danakj
On Thu, Nov 13, 2014 at 1:29 PM, <sky@chromium.org> wrote: > On 2014/11/13 17:30:32, danakj ...
6 years, 1 month ago (2014-11-13 18:38:36 UTC) #25
danakj
https://codereview.chromium.org/684543006/diff/100001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/684543006/diff/100001/cc/resources/resource_provider.cc#newcode1111 cc/resources/resource_provider.cc:1111: if (!create_surface) { On 2014/11/13 17:30:32, danakj wrote: > ...
6 years, 1 month ago (2014-11-13 19:20:50 UTC) #26
sky
Thanks for the summary. Under what conditions would a transform result in looking bad? Is ...
6 years, 1 month ago (2014-11-13 20:15:02 UTC) #27
chromium-reviews
almost any transform (except possible vertical mirror) almost any imagefilter On Thu, Nov 13, 2014 ...
6 years, 1 month ago (2014-11-13 20:20:58 UTC) #28
danakj
On Thu, Nov 13, 2014 at 3:15 PM, Scott Violet <sky@chromium.org> wrote: > Thanks for ...
6 years, 1 month ago (2014-11-13 20:30:37 UTC) #29
sky
This will likely effect chromeos mode on windows when scaled and chromeos on devices with ...
6 years, 1 month ago (2014-11-13 20:50:29 UTC) #30
danakj
On Thu, Nov 13, 2014 at 3:50 PM, Scott Violet <sky@chromium.org> wrote: > This will ...
6 years, 1 month ago (2014-11-13 21:30:03 UTC) #31
danakj
On 2014/11/13 21:30:03, danakj wrote: > On Thu, Nov 13, 2014 at 3:50 PM, Scott ...
6 years, 1 month ago (2014-11-13 21:50:23 UTC) #32
enne (OOO)
Yeah. In the short term in this patch, I think PictureLayerImpl can just add its ...
6 years, 1 month ago (2014-11-13 21:52:32 UTC) #33
enne (OOO)
Er, *PictureLayer* can add its own invalidations.
6 years, 1 month ago (2014-11-13 21:53:08 UTC) #34
sky
I believe we snap the layer for the renderer to pixels, but not other layers. ...
6 years, 1 month ago (2014-11-13 21:57:13 UTC) #35
chromium-reviews
Just ship more high-res screens, and then we can turn off LCD globally and it ...
6 years, 1 month ago (2014-11-13 21:59:18 UTC) #36
enne (OOO)
On 2014/11/13 at 21:57:13, sky wrote: > I believe we snap the layer for the ...
6 years, 1 month ago (2014-11-13 21:59:31 UTC) #37
danakj
New patch set does: - Adds a layers_always_allowed_lcd_text to LayerTreeSettings, and passes true for ui ...
6 years, 1 month ago (2014-11-13 23:32:41 UTC) #40
enne (OOO)
lgtm https://codereview.chromium.org/684543006/diff/380001/cc/resources/raster_source.h File cc/resources/raster_source.h (right): https://codereview.chromium.org/684543006/diff/380001/cc/resources/raster_source.h#newcode97 cc/resources/raster_source.h:97: virtual bool CanUseLcdText() const = 0; Lcd => ...
6 years, 1 month ago (2014-11-14 00:05:46 UTC) #41
danakj
Thanks, all done.
6 years, 1 month ago (2014-11-14 15:50:17 UTC) #42
f(malita)
On 2014/11/13 23:32:41, danakj wrote: > New patch set does: > > - Adds a ...
6 years, 1 month ago (2014-11-14 15:51:11 UTC) #43
danakj
On Fri, Nov 14, 2014 at 10:51 AM, <fmalita@chromium.org> wrote: > On 2014/11/13 23:32:41, danakj ...
6 years, 1 month ago (2014-11-14 15:55:30 UTC) #44
danakj
On Fri, Nov 14, 2014 at 10:55 AM, Dana Jansens <danakj@chromium.org> wrote: > On Fri, ...
6 years, 1 month ago (2014-11-14 15:56:09 UTC) #45
danakj
LGTY reveman?
6 years, 1 month ago (2014-11-14 15:57:15 UTC) #46
f(malita)
On 2014/11/14 15:55:30, danakj wrote: > When contents opaqueness changes, we'll have to re-record, so ...
6 years, 1 month ago (2014-11-14 17:09:10 UTC) #47
reveman
lgtm with some more nits https://codereview.chromium.org/684543006/diff/400001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/684543006/diff/400001/cc/resources/resource_provider.cc#newcode1102 cc/resources/resource_provider.cc:1102: static bool ShouldCreateSurface(SkSurface* surface, ...
6 years, 1 month ago (2014-11-14 17:19:16 UTC) #48
danakj
https://codereview.chromium.org/684543006/diff/400001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/684543006/diff/400001/cc/resources/resource_provider.cc#newcode1102 cc/resources/resource_provider.cc:1102: static bool ShouldCreateSurface(SkSurface* surface, On 2014/11/14 17:19:16, reveman wrote: ...
6 years, 1 month ago (2014-11-17 18:19:58 UTC) #49
danakj
I will have to wait for https://codereview.chromium.org/732503005/ to land before this, as it breaks/more-flakes the ...
6 years, 1 month ago (2014-11-17 18:20:44 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684543006/420001
6 years, 1 month ago (2014-11-17 19:23:38 UTC) #52
reveman
https://codereview.chromium.org/684543006/diff/400001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/684543006/diff/400001/cc/resources/resource_provider.cc#newcode1102 cc/resources/resource_provider.cc:1102: static bool ShouldCreateSurface(SkSurface* surface, On 2014/11/17 18:19:59, danakj wrote: ...
6 years, 1 month ago (2014-11-17 19:46:02 UTC) #53
danakj
On 2014/11/17 19:46:02, reveman wrote: > https://codereview.chromium.org/684543006/diff/400001/cc/resources/resource_provider.cc > File cc/resources/resource_provider.cc (right): > > https://codereview.chromium.org/684543006/diff/400001/cc/resources/resource_provider.cc#newcode1102 > ...
6 years, 1 month ago (2014-11-17 19:49:41 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684543006/460001
6 years, 1 month ago (2014-11-17 19:54:56 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684543006/460001
6 years, 1 month ago (2014-11-17 20:34:51 UTC) #61
commit-bot: I haz the power
Committed patchset #21 (id:460001)
6 years, 1 month ago (2014-11-17 21:48:09 UTC) #62
commit-bot: I haz the power
Patchset 21 (id:??) landed as https://crrev.com/ad672f645e82ca677978b097a170c908c614d184 Cr-Commit-Position: refs/heads/master@{#304486}
6 years, 1 month ago (2014-11-17 21:48:47 UTC) #63
Jeffrey Yasskin
This may have broken most of the MSan bots: http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20MSan%20Browser%20%281%29/builds/2669, http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20MSan%20Browser%20%282%29/builds/2648, and http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20MSan%20Browser%20%283%29/builds/2677 show traces ...
6 years, 1 month ago (2014-11-18 01:19:55 UTC) #65
Jeffrey Yasskin
A revert of this CL (patchset #21 id:460001) has been created in https://codereview.chromium.org/733233003/ by jyasskin@chromium.org. ...
6 years, 1 month ago (2014-11-18 01:43:36 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684543006/500001
6 years, 1 month ago (2014-11-18 16:01:36 UTC) #68
commit-bot: I haz the power
Committed patchset #23 (id:500001)
6 years, 1 month ago (2014-11-18 16:56:10 UTC) #69
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/3f76acec92ff4dbd8bc46e7add2f8f7a2cbacfb0 Cr-Commit-Position: refs/heads/master@{#304623}
6 years, 1 month ago (2014-11-18 16:57:41 UTC) #70
danakj
The msan bot is green with this patch now. Yay.
6 years, 1 month ago (2014-11-18 18:37:56 UTC) #71
tfarina
6 years ago (2014-11-26 15:11:55 UTC) #72
Message was sent while issue was closed.
https://codereview.chromium.org/684543006/diff/500001/cc/blink/web_content_la...
File cc/blink/web_content_layer_impl.h (right):

https://codereview.chromium.org/684543006/diff/500001/cc/blink/web_content_la...
cc/blink/web_content_layer_impl.h:50: bool can_use_lcd_text_;
you can remove this member variable now, you made it a local variable in
PaintContents().

Powered by Google App Engine
This is Rietveld 408576698