[Webkit-unassigned] [Bug 70955] Add FakeCCThread that supports multiple in-flight tasks
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 26 11:57:53 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=70955
--- Comment #2 from Iain Merrick <husky at google.com> 2011-10-26 11:57:53 PST ---
For context, this is related to https://bugs.webkit.org/show_bug.cgi?id=70713
I have started working on a jitter-smoothing Vsync callback handler that looks like this:
----
class CCSmoothedCallbackClient {
public:
virtual void onTick();
};
// Smooths out a series of irregular callbacks while maintaining the same phase.
// We assume that the callbacks arrive at roughly the specified period, but with
// random delays of up to half a cycle. We attempt to remove the delays.
// TODO(husky): We could also infer the interval from the incoming ticks.
class CCSmoothedCallback {
public:
CCSmoothedCallback(CCSmoothedCallbackClient* client, double interval, CCThread* thread);
void tick();
};
----
I copied FakeCCThread from the other patch, but found I wanted to be able to post more than one task at a time. For example, if interval=10, the first call to tick() should result in:
postTask(client, &onTick)
postDelayedTask(client, &onTick, 10)
And the next onTick would be scheduled when the next tick() comes in.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list