RESOLVED FIXED 126155
ImageBufferBackingStoreCache should use DeferrableOneShotTimer
https://bugs.webkit.org/show_bug.cgi?id=126155
Summary ImageBufferBackingStoreCache should use DeferrableOneShotTimer
Tim Horton
Reported 2013-12-23 03:31:00 PST
Right now, it uses plain old Timer, and reschedules it in every deallocate(), which can be very (very!) expensive (I'm seeing it at about 8% of main thread run time in my simple test case). That's why we have DeferrableOneShotTimer. I have a patch.
Attachments
patch (4.39 KB, patch)
2013-12-23 03:46 PST, Tim Horton
andersca: review+
Tim Horton
Comment 1 2013-12-23 03:46:42 PST
Tim Horton
Comment 2 2013-12-23 03:47:17 PST
Comment on attachment 219905 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=219905&action=review > Source/WebCore/platform/graphics/cg/ImageBufferBackingStoreCache.cpp:78 > + { > + } unindented obviously
Myles C. Maxfield
Comment 3 2014-01-02 11:17:41 PST
Comment on attachment 219905 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=219905&action=review > Source/WebCore/platform/graphics/cg/ImageBufferBackingStoreCache.cpp:32 > +static const double purgeInterval = 5; shouldn't this be kPurgeInterval? > Source/WebCore/platform/graphics/cg/ImageBufferBackingStoreCache.cpp:74 > +ImageBufferBackingStoreCache::ImageBufferBackingStoreCache() Why did you move this into public?
Tim Horton
Comment 4 2014-01-02 11:22:48 PST
(In reply to comment #3) > (From update of attachment 219905 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=219905&action=review > > > Source/WebCore/platform/graphics/cg/ImageBufferBackingStoreCache.cpp:32 > > +static const double purgeInterval = 5; > > shouldn't this be kPurgeInterval? I think you'll find that that's generally not the case, nor do I see anything in the style guide. > > Source/WebCore/platform/graphics/cg/ImageBufferBackingStoreCache.cpp:74 > > +ImageBufferBackingStoreCache::ImageBufferBackingStoreCache() > > Why did you move this into public? I didn't.
Tim Horton
Comment 5 2014-01-02 16:07:13 PST
Note You need to log in before you can comment on or make changes to this bug.