Bug 140285 - [CoordinatedGraphics] Suspend or resume when visibility is changed
Summary: [CoordinatedGraphics] Suspend or resume when visibility is changed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryuan Choi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-08 21:14 PST by Ryuan Choi
Modified: 2015-01-11 18:47 PST (History)
2 users (show)

See Also:


Attachments
Patch (2.67 KB, patch)
2015-01-08 21:45 PST, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (2.67 KB, patch)
2015-01-08 22:24 PST, Ryuan Choi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryuan Choi 2015-01-08 21:14:21 PST
When webview became hidden, I think that we don't need to draw something like TiledCoreAnimationDrawingArea in mac/
Comment 1 Ryuan Choi 2015-01-08 21:45:02 PST
Created attachment 244326 [details]
Patch
Comment 2 Gyuyoung Kim 2015-01-08 21:49:27 PST
Comment on attachment 244326 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=244326&action=review

> Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:613
> +    if (changed && ViewState::IsVisible) {

Is changed flag ? So don't we use below condition ?

if (changed & ViewState::IsVisible) {

}
Comment 3 Ryuan Choi 2015-01-08 22:24:16 PST
Created attachment 244330 [details]
Patch
Comment 4 Ryuan Choi 2015-01-08 22:30:09 PST
(In reply to comment #2)
> Comment on attachment 244326 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=244326&action=review
> 
> > Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:613
> > +    if (changed && ViewState::IsVisible) {
> 
> Is changed flag ? So don't we use below condition ?
> 
> if (changed & ViewState::IsVisible) {
> 
> }

Oops, mistake.

Thanks for the review, I fixed.
Comment 5 WebKit Commit Bot 2015-01-11 18:47:05 PST
Comment on attachment 244330 [details]
Patch

Clearing flags on attachment: 244330

Committed r178252: <http://trac.webkit.org/changeset/178252>
Comment 6 WebKit Commit Bot 2015-01-11 18:47:09 PST
All reviewed patches have been landed.  Closing bug.