RESOLVED FIXED 92328
[chromium] When computing surface content scale, use top level device scale
https://bugs.webkit.org/show_bug.cgi?id=92328
Summary [chromium] When computing surface content scale, use top level device scale
Adrienne Walker
Reported 2012-07-25 19:07:21 PDT
[chromium] When computing surface content scale, use top level device scale
Attachments
Patch (10.20 KB, patch)
2012-07-25 19:09 PDT, Adrienne Walker
no flags
Remove CCLayerImpl contents scale (13.25 KB, patch)
2012-07-25 19:47 PDT, Adrienne Walker
no flags
Rebased (13.25 KB, patch)
2012-07-26 11:27 PDT, Adrienne Walker
no flags
Rebased (13.22 KB, patch)
2012-07-26 12:31 PDT, Adrienne Walker
no flags
Adrienne Walker
Comment 1 2012-07-25 19:09:33 PDT
Dana Jansens
Comment 2 2012-07-25 19:14:44 PDT
Comment on attachment 154523 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154523&action=review > Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:-569 > - float contentsScale = layer->contentsScale(); can we remove CCLayerImpl::contentsScale then?
Adrienne Walker
Comment 3 2012-07-25 19:24:27 PDT
(In reply to comment #2) > (From update of attachment 154523 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=154523&action=review > > > Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:-569 > > - float contentsScale = layer->contentsScale(); > > can we remove CCLayerImpl::contentsScale then? Maybe we shouldn't have layer->contentsScale at all, and setContentsScale should setContentBounds, where appropriate?
Dana Jansens
Comment 4 2012-07-25 19:29:32 PDT
Comment on attachment 154523 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154523&action=review >>> Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:-569 >>> - float contentsScale = layer->contentsScale(); >> >> can we remove CCLayerImpl::contentsScale then? > > Maybe we shouldn't have layer->contentsScale at all, and setContentsScale should setContentBounds, where appropriate? I mean, contentsScale on LayerChromium makes sense as a hint to help create the contentBounds (tho maybe we should push that down to GraphicsLayerChromium)? But I think we should remove it from CCLayerImpl again if we can now, we plumbed it thru just for this code which is now going away here.
Dana Jansens
Comment 5 2012-07-25 19:30:20 PDT
(In reply to comment #4) > (From update of attachment 154523 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=154523&action=review > > >>> Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:-569 > >>> - float contentsScale = layer->contentsScale(); > >> > >> can we remove CCLayerImpl::contentsScale then? > > > > Maybe we shouldn't have layer->contentsScale at all, and setContentsScale should setContentBounds, where appropriate? > > I mean, contentsScale on LayerChromium makes sense as a hint to help create the contentBounds (tho maybe we should push that down to GraphicsLayerChromium)? But I think we should remove it from CCLayerImpl again if we can now, we plumbed it thru just for this code which is now going away here. Or.. ya I get what you mean now.. that sounds like it could be very nice.
Adrienne Walker
Comment 6 2012-07-25 19:47:38 PDT
Created attachment 154529 [details] Remove CCLayerImpl contents scale
Adrienne Walker
Comment 7 2012-07-25 19:48:08 PDT
(In reply to comment #6) > Created an attachment (id=154529) [details] > Remove CCLayerImpl contents scale Yeah, removing it from the LayerChromium side *sounds* nice but is way more complicated. Punt!
Dana Jansens
Comment 8 2012-07-25 22:35:19 PDT
Comment on attachment 154529 [details] Remove CCLayerImpl contents scale yup! LGTM!
Adrienne Walker
Comment 9 2012-07-26 11:27:03 PDT
Dana Jansens
Comment 10 2012-07-26 12:04:08 PDT
prpl :(
Adrienne Walker
Comment 11 2012-07-26 12:31:55 PDT
vollick
Comment 12 2012-07-26 12:38:08 PDT
I love this patch. LGTM, too.
Dana Jansens
Comment 13 2012-07-26 13:59:07 PDT
Yay green, still lgtm :)
Dana Jansens
Comment 14 2012-07-26 15:19:50 PDT
kbr or senorblanco for review, as jamesr is still in catch-up mode?
Kenneth Russell
Comment 15 2012-07-26 15:54:40 PDT
Comment on attachment 154722 [details] Rebased rs=me
Adrienne Walker
Comment 16 2012-07-26 15:55:40 PDT
Comment on attachment 154722 [details] Rebased Thanks, kbr. :)
WebKit Review Bot
Comment 17 2012-07-26 16:55:35 PDT
Comment on attachment 154722 [details] Rebased Clearing flags on attachment: 154722 Committed r123814: <http://trac.webkit.org/changeset/123814>
WebKit Review Bot
Comment 18 2012-07-26 16:55:40 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.