WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
90300
[chromium] Use CCThread::Task in compositor's RateLimiter instead of Timer
https://bugs.webkit.org/show_bug.cgi?id=90300
Summary
[chromium] Use CCThread::Task in compositor's RateLimiter instead of Timer
James Robinson
Reported
2012-06-29 12:50:53 PDT
[chromium] Use CCThread::Task in compositor's RateLimiter instead of Timer
Attachments
Patch
(5.78 KB, patch)
2012-06-29 12:51 PDT
,
James Robinson
enne
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
James Robinson
Comment 1
2012-06-29 12:51:22 PDT
Created
attachment 150238
[details]
Patch
James Robinson
Comment 2
2012-06-29 12:52:19 PDT
Motivation is to cut dependency on WebCore::Timer. Tested manually on FishIE, seems to work fine. Unit test coverage would be nice, but that's not a new issue.
Adrienne Walker
Comment 3
2012-06-29 14:43:29 PDT
Comment on
attachment 150238
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=150238&action=review
R=me. Looks reasonable to me.
> Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp:132 > + RateLimiterMap::iterator it = m_rateLimiters.begin(); > + if (it != m_rateLimiters.end()) > + it->second->stop();
It's kind of dodgy that we didn't have this before, since something that outlived the host could have taken a ref on the RateLimiter.
John Bauman
Comment 4
2012-06-29 15:06:19 PDT
I tested with something like this before, and noticed in traces that this would sometimes cause the rate limit task to be pushed into the next frame (after the composite), which could cause the frame time to be more erratic.
James Robinson
Comment 5
2012-06-29 15:25:10 PDT
Do you think the Timer-based version does something different?
James Robinson
Comment 6
2012-06-29 16:45:17 PDT
(In reply to
comment #4
)
> I tested with something like this before, and noticed in traces that this would sometimes cause the rate limit task to be pushed into the next frame (after the composite), which could cause the frame time to be more erratic.
I'm going to go ahead since the dependency is a big pain and I don't think this will change the timing much, but please file a bug if you see any bad behaviors. We also have canvas deferral on by default, which is another way to try to tackle some of these issues.
James Robinson
Comment 7
2012-06-29 16:45:47 PDT
Committed
r121601
: <
http://trac.webkit.org/changeset/121601
>
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