WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 110299
[WK2] add setNeedsDisplay in DrawingArea to mark whole layer as dirty.
https://bugs.webkit.org/show_bug.cgi?id=110299
Summary
[WK2] add setNeedsDisplay in DrawingArea to mark whole layer as dirty.
Dongseong Hwang
Reported
2013-02-19 21:41:31 PST
Currently, we call setNeedsDisplay with the size of WebPage to mark whole backing store as dirty. However, the size of non compositing layer can be inconsistent with the size of WebPage. For example, in Coordinated Graphics, the size of non compositing layer is contents size. So, WebPage should not assume the size of non compositing layer, and should just call setNeedsDisplay when marking whole layer as dirty. In addition, this patch renames from setNeedsDisplay() with a rect argument to setNeedsDisplayInRect(), which matches to the terms of GraphicsLayer.
Attachments
Patch
(23.39 KB, patch)
2013-02-19 21:46 PST
,
Dongseong Hwang
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dongseong Hwang
Comment 1
2013-02-19 21:46:38 PST
Created
attachment 189234
[details]
Patch
Anders Carlsson
Comment 2
2013-02-20 09:45:16 PST
Comment on
attachment 189234
[details]
Patch Looks good. Longer term I'd recommend that you'd get rid of the non-composited contents and just always enter accelerated compositing mode - this is what we do on Mac. That'd allow us to simplify a lot of code.
WebKit Review Bot
Comment 3
2013-02-20 10:12:05 PST
Comment on
attachment 189234
[details]
Patch Clearing flags on attachment: 189234 Committed
r143472
: <
http://trac.webkit.org/changeset/143472
>
WebKit Review Bot
Comment 4
2013-02-20 10:12:08 PST
All reviewed patches have been landed. Closing bug.
Noam Rosenthal
Comment 5
2013-02-20 10:22:50 PST
(In reply to
comment #2
)
> (From update of
attachment 189234
[details]
) > Looks good. Longer term I'd recommend that you'd get rid of the non-composited contents and just always enter accelerated compositing mode - this is what we do on Mac. That'd allow us to simplify a lot of code.
I agree. Created but
https://bugs.webkit.org/show_bug.cgi?id=110355
Dongseong Hwang
Comment 6
2013-02-26 16:54:37 PST
(In reply to
comment #2
)
> (From update of
attachment 189234
[details]
) > Looks good. Longer term I'd recommend that you'd get rid of the non-composited contents and just always enter accelerated compositing mode - this is what we do on Mac. That'd allow us to simplify a lot of code.
It seems right direction! could you explain more detail? After I read your comment, I thought LayerTreeHostMac does not have nonCompositedContentsLayer and RenderLayerCompositor::rootLayer deals with non-composited contents. But in upstream code, LayerTreeHostMac is very similar to CoordinatedLayerTreeHost; both have nonCompositedContentsLayer. Could you let me know what bug or revision simplified a lot of code on Mac? Thanks in advance.
Anders Carlsson
Comment 7
2013-02-26 16:59:47 PST
(In reply to
comment #6
)
> (In reply to
comment #2
) > > (From update of
attachment 189234
[details]
[details]) > > Looks good. Longer term I'd recommend that you'd get rid of the non-composited contents and just always enter accelerated compositing mode - this is what we do on Mac. That'd allow us to simplify a lot of code. > > It seems right direction! could you explain more detail?
Noam filed a radar about this in
https://bugs.webkit.org/show_bug.cgi?id=110355
- it should have some information.
> > After I read your comment, I thought LayerTreeHostMac does not have nonCompositedContentsLayer and RenderLayerCompositor::rootLayer deals with non-composited contents. But in upstream code, LayerTreeHostMac is very similar to CoordinatedLayerTreeHost; both have nonCompositedContentsLayer. > Could you let me know what bug or revision simplified a lot of code on Mac?
Sure! We actually only use LayerTreeHostMac on OS X Lion. On Mountain Lion we use a different drawing area, the TiledCoreAnimationDrawingArea.
Dongseong Hwang
Comment 8
2013-02-26 17:16:16 PST
(In reply to
comment #7
)
> (In reply to
comment #6
) > Sure! We actually only use LayerTreeHostMac on OS X Lion. On Mountain Lion we use a different drawing area, the TiledCoreAnimationDrawingArea.
aha, TiledCoreAnimationDrawingArea is key. Thanks.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug