Bug 134470 - Avoid copying function object in lambda function in ScrollingThread::dispatchBarrier(); actually use move semantics
Summary: Avoid copying function object in lambda function in ScrollingThread::dispatch...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Daniel Bates
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-30 16:33 PDT by Daniel Bates
Modified: 2014-06-30 17:04 PDT (History)
11 users (show)

See Also:


Attachments
Patch (1.87 KB, patch)
2014-06-30 16:34 PDT, Daniel Bates
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2014-06-30 16:33:32 PDT
We should make the lambda expression mutable in ScrollingThread::dispatchBarrier() so that we actually use move semantics when calling callOnMainThread().
Comment 1 Daniel Bates 2014-06-30 16:34:24 PDT
Created attachment 234115 [details]
Patch
Comment 2 Daniel Bates 2014-06-30 17:04:46 PDT
Committed r170616: <http://trac.webkit.org/changeset/170616>