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

Issue 11360093: Mark layers that can use LCD text based on layer transform and opacity. (Closed)

Created:
8 years, 1 month ago by alokp
Modified:
8 years ago
Reviewers:
danakj, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Mark layers that can use LCD text based on layer transform and opacity. - Text AA settings are not adjusted during animation to avoid repaints. - Renamed Layer::useLCDText to Layer::canUseLCDText. BUG=100666 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172842

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : fixed unit tests #

Total comments: 16

Patch Set 4 : addressed CR comments #

Patch Set 5 : fixed compile error #

Total comments: 16

Patch Set 6 : parametrized canUseLCDText in unit tests #

Patch Set 7 : rebase with TOT, addressed comments #

Total comments: 15

Patch Set 8 : addressed comments #

Patch Set 9 : fixed clang errors #

Patch Set 10 : removed testing for preserves3D #

Patch Set 11 : synced with TOT and addressed comments #

Patch Set 12 : fixed build #

Total comments: 8

Patch Set 13 : addressed comments #

Total comments: 5

Patch Set 14 : synced with TOT and addressed comments #

Patch Set 15 : added ContentLayer::useLCDText() #

Total comments: 4

Patch Set 16 : sync with TOT #

Patch Set 17 : reverted whitespace change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -90 lines) Patch
M cc/content_layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +12 lines, -0 lines 0 comments Download
M cc/content_layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +41 lines, -0 lines 0 comments Download
M cc/content_layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +74 lines, -0 lines 0 comments Download
M cc/damage_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M cc/draw_properties.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
M cc/layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +2 lines, -4 lines 0 comments Download
M cc/layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +0 lines, -7 lines 0 comments Download
M cc/layer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +2 lines, -4 lines 0 comments Download
M cc/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M cc/layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M cc/layer_iterator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layer_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_common.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 12 chunks +32 lines, -11 lines 0 comments Download
M cc/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 49 chunks +172 lines, -49 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M cc/layer_tree_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M cc/layer_tree_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -0 lines 0 comments Download
M cc/occlusion_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/compositor_bindings/web_content_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
alokp
8 years, 1 month ago (2012-11-05 23:07:04 UTC) #1
alokp
Adrienne/Dana: This is ready for review.
8 years, 1 month ago (2012-11-07 17:32:30 UTC) #2
danakj
Thanks Alok, looks pretty good! I'd like to make this a bit more general, and ...
8 years, 1 month ago (2012-11-07 18:15:00 UTC) #3
alokp
http://codereview.chromium.org/11360093/diff/1014/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): http://codereview.chromium.org/11360093/diff/1014/cc/layer_tree_host_common.cc#newcode558 cc/layer_tree_host_common.cc:558: bool layerCanUseLCDText = canAdjustTextAA ? canUseLCDText && (drawOpacity == ...
8 years, 1 month ago (2012-11-08 22:34:07 UTC) #4
danakj
Thanks for the changes, I like it as a LayerTreeSetting a lot more. A couple ...
8 years, 1 month ago (2012-11-10 01:12:35 UTC) #5
alokp
http://codereview.chromium.org/11360093/diff/3028/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): http://codereview.chromium.org/11360093/diff/3028/cc/layer_tree_host_common.cc#newcode553 cc/layer_tree_host_common.cc:553: bool layerCanUseLCDText = adjustTextAA && canUseLCDText && (drawOpacity == ...
8 years, 1 month ago (2012-11-12 01:04:45 UTC) #6
danakj
http://codereview.chromium.org/11360093/diff/3028/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): http://codereview.chromium.org/11360093/diff/3028/cc/layer_tree_host_common.cc#newcode553 cc/layer_tree_host_common.cc:553: bool layerCanUseLCDText = adjustTextAA && canUseLCDText && (drawOpacity == ...
8 years, 1 month ago (2012-11-12 01:25:47 UTC) #7
alokp
http://codereview.chromium.org/11360093/diff/3028/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): http://codereview.chromium.org/11360093/diff/3028/cc/layer_tree_host_common.cc#newcode553 cc/layer_tree_host_common.cc:553: bool layerCanUseLCDText = adjustTextAA && canUseLCDText && (drawOpacity == ...
8 years, 1 month ago (2012-11-12 03:58:42 UTC) #8
danakj
LGTM http://codereview.chromium.org/11360093/diff/3028/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): http://codereview.chromium.org/11360093/diff/3028/cc/layer_tree_host_common.cc#newcode553 cc/layer_tree_host_common.cc:553: bool layerCanUseLCDText = adjustTextAA && canUseLCDText && (drawOpacity ...
8 years, 1 month ago (2012-11-12 05:55:03 UTC) #9
alokp
http://codereview.chromium.org/11360093/diff/3028/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): http://codereview.chromium.org/11360093/diff/3028/cc/layer_tree_host_common.cc#newcode553 cc/layer_tree_host_common.cc:553: bool layerCanUseLCDText = adjustTextAA && canUseLCDText && (drawOpacity == ...
8 years, 1 month ago (2012-11-12 16:50:10 UTC) #10
alokp
enne: Do you have any comments?
8 years, 1 month ago (2012-11-12 16:54:22 UTC) #11
enne (OOO)
https://codereview.chromium.org/11360093/diff/15001/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): https://codereview.chromium.org/11360093/diff/15001/cc/layer_tree_host_common.cc#newcode552 cc/layer_tree_host_common.cc:552: // Adjusting text AA method during animation may cause ...
8 years, 1 month ago (2012-11-14 17:42:15 UTC) #12
alokp
Uploading the new patch shortly. http://codereview.chromium.org/11360093/diff/15001/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): http://codereview.chromium.org/11360093/diff/15001/cc/layer_tree_host_common.cc#newcode552 cc/layer_tree_host_common.cc:552: // Adjusting text AA ...
8 years, 1 month ago (2012-11-16 04:41:11 UTC) #13
enne (OOO)
What's the strategy for LCD text on platforms where we can pinch zoom? I am ...
8 years, 1 month ago (2012-11-16 17:36:38 UTC) #14
alokp
On 2012/11/16 17:36:38, enne wrote: > What's the strategy for LCD text on platforms where ...
8 years, 1 month ago (2012-11-16 21:33:12 UTC) #15
alokp
http://codereview.chromium.org/11360093/diff/15001/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): http://codereview.chromium.org/11360093/diff/15001/cc/layer_tree_host_common.cc#newcode554 cc/layer_tree_host_common.cc:554: // To avoid color fringing, LCD text should only ...
8 years, 1 month ago (2012-11-16 21:33:52 UTC) #16
jamesr
On 2012/11/16 21:33:12, Alok Priyadarshi wrote: > On 2012/11/16 17:36:38, enne wrote: > > What's ...
8 years, 1 month ago (2012-11-16 21:37:40 UTC) #17
alokp
On 2012/11/16 21:37:40, jamesr wrote: > On 2012/11/16 21:33:12, Alok Priyadarshi wrote: > > On ...
8 years, 1 month ago (2012-11-16 21:40:19 UTC) #18
jamesr
On 2012/11/16 21:40:19, Alok Priyadarshi wrote: > On 2012/11/16 21:37:40, jamesr wrote: > > On ...
8 years, 1 month ago (2012-11-16 21:42:14 UTC) #19
alokp
On 2012/11/16 21:42:14, jamesr wrote: > On 2012/11/16 21:40:19, Alok Priyadarshi wrote: > > On ...
8 years, 1 month ago (2012-11-16 21:47:37 UTC) #20
enne (OOO)
Re: pinch-zoom. You're right that we currently have this problem, so it's ok to punt ...
8 years ago (2012-11-26 15:22:50 UTC) #21
alokp
@enne: PTAL. I believe I addressed all the comments. Let me know if I missed ...
8 years ago (2012-12-10 23:25:24 UTC) #22
enne (OOO)
https://codereview.chromium.org/11360093/diff/36001/cc/layer.h File cc/layer.h (right): https://codereview.chromium.org/11360093/diff/36001/cc/layer.h#newcode305 cc/layer.h:305: virtual bool canUseLCDTextWillChange(); Can you do this without adding ...
8 years ago (2012-12-11 02:47:15 UTC) #23
alokp
https://codereview.chromium.org/11360093/diff/36001/cc/layer.h File cc/layer.h (right): https://codereview.chromium.org/11360093/diff/36001/cc/layer.h#newcode305 cc/layer.h:305: virtual bool canUseLCDTextWillChange(); I do not understand your solution ...
8 years ago (2012-12-11 05:07:21 UTC) #24
alokp
Moved m_canUseLCDText to DrawProperties. The logic for avoiding flip-flopping of LCD text is now encapsulated ...
8 years ago (2012-12-12 17:42:24 UTC) #25
enne (OOO)
https://codereview.chromium.org/11360093/diff/41001/cc/content_layer.cc File cc/content_layer.cc (right): https://codereview.chromium.org/11360093/diff/41001/cc/content_layer.cc#newcode118 cc/content_layer.cc:118: drawProperties().can_use_lcd_text = m_canUseLCDText; Draw properties should only be set ...
8 years ago (2012-12-12 17:56:52 UTC) #26
alokp
https://codereview.chromium.org/11360093/diff/41001/cc/content_layer.cc File cc/content_layer.cc (right): https://codereview.chromium.org/11360093/diff/41001/cc/content_layer.cc#newcode118 cc/content_layer.cc:118: drawProperties().can_use_lcd_text = m_canUseLCDText; On 2012/12/12 17:56:52, enne wrote: > ...
8 years ago (2012-12-12 19:03:04 UTC) #27
enne (OOO)
https://codereview.chromium.org/11360093/diff/41001/cc/content_layer.cc File cc/content_layer.cc (right): https://codereview.chromium.org/11360093/diff/41001/cc/content_layer.cc#newcode118 cc/content_layer.cc:118: drawProperties().can_use_lcd_text = m_canUseLCDText; Sorry that I wasn't clear enough. ...
8 years ago (2012-12-12 19:14:46 UTC) #28
alokp
> The Layer class knows about "can use LCD text". This is a draw property ...
8 years ago (2012-12-12 19:40:46 UTC) #29
enne (OOO)
I'm not concerned about the static_cast. The point of WebContentLayerImpl is to be a bridge ...
8 years ago (2012-12-12 19:44:22 UTC) #30
jamesr
On 2012/12/12 19:40:46, Alok Priyadarshi wrote: > Trying to call a function that only exists ...
8 years ago (2012-12-12 19:44:34 UTC) #31
alokp
Done.
8 years ago (2012-12-12 21:45:29 UTC) #32
enne (OOO)
https://codereview.chromium.org/11360093/diff/51002/cc/content_layer.cc File cc/content_layer.cc (right): https://codereview.chromium.org/11360093/diff/51002/cc/content_layer.cc#newcode48 cc/content_layer.cc:48: , m_useLCDText(false) Am I reading this code right that ...
8 years ago (2012-12-12 21:49:48 UTC) #33
alokp
https://codereview.chromium.org/11360093/diff/51002/cc/content_layer.cc File cc/content_layer.cc (right): https://codereview.chromium.org/11360093/diff/51002/cc/content_layer.cc#newcode48 cc/content_layer.cc:48: , m_useLCDText(false) On 2012/12/12 21:49:48, enne wrote: > Am ...
8 years ago (2012-12-12 21:53:22 UTC) #34
enne (OOO)
lgtm https://codereview.chromium.org/11360093/diff/51002/cc/content_layer.cc File cc/content_layer.cc (right): https://codereview.chromium.org/11360093/diff/51002/cc/content_layer.cc#newcode48 cc/content_layer.cc:48: , m_useLCDText(false) Oh, quite right. My mistake. :)
8 years ago (2012-12-12 21:54:31 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/11360093/51002
8 years ago (2012-12-12 21:59:00 UTC) #36
commit-bot: I haz the power
Failed to apply patch for cc/layer_tree_host.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-12 21:59:08 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/11360093/56001
8 years ago (2012-12-13 06:29:35 UTC) #38
commit-bot: I haz the power
8 years ago (2012-12-13 09:19:01 UTC) #39
Message was sent while issue was closed.
Change committed as 172842

Powered by Google App Engine
This is Rietveld 408576698