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

Issue 11027045: Mark layers whether they can use LCD text depending on content-opacity, draw-opacity, and draw-tran… (Closed)

Created:
8 years, 2 months ago by alokp
Modified:
8 years, 1 month ago
Reviewers:
danakj, jamesr, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Mark layers whether they can use LCD text depending on content-opacity, draw-opacity, and draw-transform. BUG=100666

Patch Set 1 #

Total comments: 4

Patch Set 2 : animation #

Patch Set 3 : Renamed useLCDText to canUseLCDText #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -23 lines) Patch
M cc/CCLayerImpl.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M cc/CCLayerImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/CCLayerImplTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/CCLayerTreeHostCommon.cpp View 1 2 7 chunks +14 lines, -4 lines 0 comments Download
M cc/CCLayerTreeHostImplTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/LayerChromium.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M cc/LayerChromium.cpp View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M cc/LayerChromiumTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/TiledLayerChromium.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/TiledLayerChromium.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/compositor_bindings/WebContentLayerImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
alokp
Uploading to make sure we are on the same page. Not ready to check-in. Things ...
8 years, 2 months ago (2012-10-04 22:27:26 UTC) #1
danakj
http://codereview.chromium.org/11027045/diff/1/cc/CCLayerTreeHostCommon.cpp File cc/CCLayerTreeHostCommon.cpp (right): http://codereview.chromium.org/11027045/diff/1/cc/CCLayerTreeHostCommon.cpp#newcode619 cc/CCLayerTreeHostCommon.cpp:619: layer->setUseLCDText(canUseLCDText && The layer's opacity and transform affects its ...
8 years, 2 months ago (2012-10-04 22:33:24 UTC) #2
enne (OOO)
Yeah, this is exactly the sort of thing I had in mind. I'm still not ...
8 years, 2 months ago (2012-10-04 22:39:24 UTC) #3
danakj
On 2012/10/04 22:39:24, enne wrote: > Yeah, this is exactly the sort of thing I ...
8 years, 2 months ago (2012-10-04 22:43:01 UTC) #4
enne (OOO)
On 2012/10/04 22:43:01, danakj wrote: > On 2012/10/04 22:39:24, enne wrote: > > Yeah, this ...
8 years, 2 months ago (2012-10-04 22:45:56 UTC) #5
danakj
On 2012/10/04 22:45:56, enne wrote: > On 2012/10/04 22:43:01, danakj wrote: > > On 2012/10/04 ...
8 years, 2 months ago (2012-10-04 22:46:48 UTC) #6
jamesr
You also have to consider if the layer is being filtered in a way that ...
8 years, 2 months ago (2012-10-04 22:54:25 UTC) #7
enne (OOO)
Other wrinkles: * layers whose screen space positions are being animated * pinch zoom I'm ...
8 years, 2 months ago (2012-10-05 16:21:59 UTC) #8
alokp
This is how I was planning on handling animations - do not adjust LCD setting ...
8 years, 2 months ago (2012-10-05 17:54:20 UTC) #9
alokp
http://codereview.chromium.org/11027045/diff/1/cc/LayerChromium.cpp File cc/LayerChromium.cpp (right): http://codereview.chromium.org/11027045/diff/1/cc/LayerChromium.cpp#newcode94 cc/LayerChromium.cpp:94: //setNeedsDisplay(); On 2012/10/05 16:21:59, enne wrote: > I would ...
8 years, 2 months ago (2012-10-11 21:12:11 UTC) #10
jamesr
8 years, 2 months ago (2012-10-16 04:17:55 UTC) #11
On 2012/10/05 17:54:20, Alok Priyadarshi wrote:
> This is how I was planning on handling animations - do not adjust LCD setting
> while opacity or transform is animating. This may show look in some cases, but
> would avoid the initial jank.

I don't think this is going to work - could you produce some test pages (use a
png with rasterized text to emulate LCD) and try it out, but based on how Safari
behaves with pinch-zoom even on retina displays it looks horrible.

Most of the time, when we start a CSS animation on a layer the animation
triggers compositing so we have to repaint the content anyway.

> 
> Is there a flag somewhere for pinch-zoom?
> 

No, but that's because currently pinch zoom is only enabled for Android AFAIK.

Powered by Google App Engine
This is Rietveld 408576698