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

Issue 315393002: Record SkPicture with correct LCD text setting. (Closed)

Created:
6 years, 6 months ago by alokp
Modified:
6 years, 6 months ago
Reviewers:
danakj, enne (OOO), piman
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, piman, sievers+watch_chromium.org, Ian Vollick
Visibility:
Public.

Description

Record SkPicture with correct LCD text setting. We used to always recorded with LCD ON and if needed disabled it with an SkFilter during rasterization. This is wasteful on platforms where LCD text is always disabled. This patch records SkPicture with correct setting. One downside to this approach is that we would need to invalidate and record anytime the LCD text setting changes. But since this can only happen once for a layer (all future changes are ignored), this is not going to be a big performance issue. On the positive side, this patch will simplify a lot of things on the rasterization front - no SkDrawFilter, or LCD text tile versions, or a special rasterization mode for disable LCD. BUG=368513 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276785

Patch Set 1 #

Patch Set 2 : updated unittests #

Total comments: 8

Patch Set 3 : fixed cc_perftests #

Patch Set 4 : rebase #

Patch Set 5 : better unittest #

Total comments: 7

Patch Set 6 : rebase #

Patch Set 7 : preserved lcd-change callback #

Patch Set 8 : re-add PictureLayer changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -9 lines) Patch
M cc/layers/picture_layer.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 4 5 6 7 3 chunks +14 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -4 lines 0 comments Download
M webkit/renderer/compositor_bindings/web_content_layer_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
alokp
To keep the patch small, I am not updating the impl-side. I will do that ...
6 years, 6 months ago (2014-06-06 05:23:52 UTC) #1
enne (OOO)
https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h File cc/layers/content_layer_client.h (right): https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h#newcode34 cc/layers/content_layer_client.h:34: virtual bool PaintsLCDText() const = 0; Please don't change ...
6 years, 6 months ago (2014-06-06 16:59:32 UTC) #2
alokp
https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h File cc/layers/content_layer_client.h (right): https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h#newcode34 cc/layers/content_layer_client.h:34: virtual bool PaintsLCDText() const = 0; On 2014/06/06 16:59:32, ...
6 years, 6 months ago (2014-06-06 19:15:05 UTC) #3
alokp
Please see the latest patch for unittest that makes sure that layers with clients that ...
6 years, 6 months ago (2014-06-06 22:05:40 UTC) #4
alokp
+danakj for ui/compositor.
6 years, 6 months ago (2014-06-06 22:11:48 UTC) #5
enne (OOO)
https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h File cc/layers/content_layer_client.h (right): https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h#newcode34 cc/layers/content_layer_client.h:34: virtual bool PaintsLCDText() const = 0; On 2014/06/06 19:15:05, ...
6 years, 6 months ago (2014-06-06 22:21:00 UTC) #6
alokp
https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h File cc/layers/content_layer_client.h (right): https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h#newcode34 cc/layers/content_layer_client.h:34: virtual bool PaintsLCDText() const = 0; On 2014/06/06 22:20:59, ...
6 years, 6 months ago (2014-06-06 22:31:27 UTC) #7
alokp
https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h File cc/layers/content_layer_client.h (right): https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h#newcode34 cc/layers/content_layer_client.h:34: virtual bool PaintsLCDText() const = 0; piman: Do you ...
6 years, 6 months ago (2014-06-10 17:18:59 UTC) #8
enne (OOO)
https://codereview.chromium.org/315393002/diff/80001/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/315393002/diff/80001/cc/layers/picture_layer.cc#newcode205 cc/layers/picture_layer.cc:205: SetNeedsDisplay(); Re: "The ui::layer will still not be invalidated" ...
6 years, 6 months ago (2014-06-10 18:46:09 UTC) #9
alokp
https://codereview.chromium.org/315393002/diff/80001/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/315393002/diff/80001/cc/layers/picture_layer.cc#newcode205 cc/layers/picture_layer.cc:205: SetNeedsDisplay(); On 2014/06/10 18:46:09, enne wrote: > Re: "The ...
6 years, 6 months ago (2014-06-10 20:54:43 UTC) #10
piman
https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h File cc/layers/content_layer_client.h (right): https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h#newcode34 cc/layers/content_layer_client.h:34: virtual bool PaintsLCDText() const = 0; On 2014/06/10 17:18:59, ...
6 years, 6 months ago (2014-06-10 22:57:45 UTC) #11
alokp
https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h File cc/layers/content_layer_client.h (right): https://codereview.chromium.org/315393002/diff/20001/cc/layers/content_layer_client.h#newcode34 cc/layers/content_layer_client.h:34: virtual bool PaintsLCDText() const = 0; AFAICT in the ...
6 years, 6 months ago (2014-06-10 23:33:47 UTC) #12
piman
https://codereview.chromium.org/315393002/diff/80001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/315393002/diff/80001/ui/compositor/layer.cc#newcode668 ui/compositor/layer.cc:668: return false; On 2014/06/10 20:54:43, Alok Priyadarshi wrote: > ...
6 years, 6 months ago (2014-06-10 23:48:31 UTC) #13
alokp
https://codereview.chromium.org/315393002/diff/80001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/315393002/diff/80001/ui/compositor/layer.cc#newcode668 ui/compositor/layer.cc:668: return false; On 2014/06/10 23:48:31, piman wrote: > On ...
6 years, 6 months ago (2014-06-10 23:59:41 UTC) #14
piman
https://codereview.chromium.org/315393002/diff/80001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/315393002/diff/80001/ui/compositor/layer.cc#newcode668 ui/compositor/layer.cc:668: return false; On 2014/06/10 23:59:41, Alok Priyadarshi wrote: > ...
6 years, 6 months ago (2014-06-11 00:02:27 UTC) #15
alokp
https://codereview.chromium.org/315393002/diff/80001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/315393002/diff/80001/ui/compositor/layer.cc#newcode668 ui/compositor/layer.cc:668: return false; Hmm. In that case I agree that ...
6 years, 6 months ago (2014-06-11 01:01:36 UTC) #16
alokp
enne: PTAL
6 years, 6 months ago (2014-06-11 06:45:34 UTC) #17
enne (OOO)
lgtm
6 years, 6 months ago (2014-06-11 17:22:22 UTC) #18
alokp
enne: Sorry for the trouble. When I updated my patch last night, by mistake I ...
6 years, 6 months ago (2014-06-11 17:49:56 UTC) #19
enne (OOO)
lgtm
6 years, 6 months ago (2014-06-11 17:52:43 UTC) #20
alokp
The CQ bit was checked by alokp@chromium.org
6 years, 6 months ago (2014-06-11 17:55:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/315393002/140001
6 years, 6 months ago (2014-06-11 17:59:28 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:18:17 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:25:08 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/160338) mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/37993)
6 years, 6 months ago (2014-06-11 21:25:09 UTC) #25
alokp
The CQ bit was checked by alokp@chromium.org
6 years, 6 months ago (2014-06-11 21:40:48 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/315393002/140001
6 years, 6 months ago (2014-06-11 21:43:14 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:47:57 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:52:15 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/160368) mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/38045) win_chromium_x64_rel ...
6 years, 6 months ago (2014-06-11 21:52:16 UTC) #30
alokp
The CQ bit was checked by alokp@chromium.org
6 years, 6 months ago (2014-06-11 22:05:11 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/315393002/140001
6 years, 6 months ago (2014-06-11 22:07:14 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:38:37 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:40:35 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/26249)
6 years, 6 months ago (2014-06-11 22:40:36 UTC) #35
alokp
The CQ bit was checked by alokp@chromium.org
6 years, 6 months ago (2014-06-11 22:51:48 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/315393002/140001
6 years, 6 months ago (2014-06-11 22:52:42 UTC) #37
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:57:44 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:59:48 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/26277)
6 years, 6 months ago (2014-06-11 22:59:49 UTC) #40
alokp
The CQ bit was checked by alokp@chromium.org
6 years, 6 months ago (2014-06-12 17:12:15 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/315393002/140001
6 years, 6 months ago (2014-06-12 17:14:52 UTC) #42
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 20:26:22 UTC) #43
Message was sent while issue was closed.
Change committed as 276785

Powered by Google App Engine
This is Rietveld 408576698