Changeset 220538 in webkit


Ignore:
Timestamp:
Aug 10, 2017 12:05:51 PM (7 years ago)
Author:
timothy_horton@apple.com
Message:

Remove some unused lambda captures so that WebKit builds with -Wunused-lambda-capture
https://bugs.webkit.org/show_bug.cgi?id=175436
<rdar://problem/33667497>

Reviewed by Simon Fraser.

Source/JavaScriptCore:

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::Interpreter):

Source/WebCore:

  • platform/audio/cocoa/MediaSessionManagerCocoa.cpp:

(PlatformMediaSessionManager::updateSessionState):

  • platform/graphics/cocoa/WebCoreDecompressionSession.mm:

(WebCore::WebCoreDecompressionSession::handleDecompressionOutput):

Source/WebKit:

  • UIProcess/UserMediaPermissionRequestManagerProxy.cpp:

(WebKit::UserMediaPermissionRequestManagerProxy::requestUserMediaPermissionForFrame):

  • UIProcess/WebsiteData/WebsiteDataStore.cpp:

(WebKit::WebsiteDataStore::topPrivatelyControlledDomainsWithWebsiteData):

Tools:

  • TestWebKitAPI/Tests/WebCore/FileMonitor.cpp:

(TestWebKitAPI::TEST_F):

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r220532 r220538  
     12017-08-10  Tim Horton  <timothy_horton@apple.com>
     2
     3        Remove some unused lambda captures so that WebKit builds with -Wunused-lambda-capture
     4        https://bugs.webkit.org/show_bug.cgi?id=175436
     5        <rdar://problem/33667497>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * interpreter/Interpreter.cpp:
     10        (JSC::Interpreter::Interpreter):
     11
    1122017-08-10  Michael Catanzaro  <mcatanzaro@igalia.com>
    213
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r218820 r220538  
    323323#if !ASSERT_DISABLED
    324324    static std::once_flag assertOnceKey;
    325     std::call_once(assertOnceKey, [this] {
     325    std::call_once(assertOnceKey, [] {
    326326        for (unsigned i = 0; i < NUMBER_OF_BYTECODE_IDS; ++i) {
    327327            OpcodeID opcodeID = static_cast<OpcodeID>(i);
  • trunk/Source/WebCore/ChangeLog

    r220535 r220538  
     12017-08-10  Tim Horton  <timothy_horton@apple.com>
     2
     3        Remove some unused lambda captures so that WebKit builds with -Wunused-lambda-capture
     4        https://bugs.webkit.org/show_bug.cgi?id=175436
     5        <rdar://problem/33667497>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * platform/audio/cocoa/MediaSessionManagerCocoa.cpp:
     10        (PlatformMediaSessionManager::updateSessionState):
     11        * platform/graphics/cocoa/WebCoreDecompressionSession.mm:
     12        (WebCore::WebCoreDecompressionSession::handleDecompressionOutput):
     13
    1142017-08-10  Commit Queue  <commit-queue@webkit.org>
    215
  • trunk/Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.cpp

    r217999 r220538  
    6363    bool hasWebAudioType = false;
    6464    bool hasAudibleAudioOrVideoMediaType = false;
    65     bool hasAudioCapture = anyOfSessions([this, &hasWebAudioType, &hasAudibleAudioOrVideoMediaType] (PlatformMediaSession& session, size_t) mutable {
     65    bool hasAudioCapture = anyOfSessions([&hasWebAudioType, &hasAudibleAudioOrVideoMediaType] (PlatformMediaSession& session, size_t) mutable {
    6666        auto type = session.mediaType();
    6767        if (type == PlatformMediaSession::WebAudio)
  • trunk/Source/WebCore/platform/graphics/cocoa/WebCoreDecompressionSession.mm

    r219457 r220538  
    225225void WebCoreDecompressionSession::handleDecompressionOutput(bool displaying, OSStatus status, VTDecodeInfoFlags infoFlags, CVImageBufferRef rawImageBuffer, CMTime presentationTimeStamp, CMTime presentationDuration)
    226226{
     227    UNUSED_PARAM(status);
     228    UNUSED_PARAM(infoFlags);
     229
    227230    CMVideoFormatDescriptionRef rawImageBufferDescription = nullptr;
    228231    if (noErr != CMVideoFormatDescriptionCreateForImageBuffer(kCFAllocatorDefault, rawImageBuffer, &rawImageBufferDescription))
     
    241244    RefPtr<WebCoreDecompressionSession> protectedThis { this };
    242245    RetainPtr<CMSampleBufferRef> imageSampleBuffer = adoptCF(rawImageSampleBuffer);
    243     dispatch_async(m_enqueingQueue.get(), [protectedThis, status, imageSampleBuffer, infoFlags, displaying] {
    244         UNUSED_PARAM(infoFlags);
     246    dispatch_async(m_enqueingQueue.get(), [protectedThis, imageSampleBuffer, displaying] {
    245247        protectedThis->enqueueDecodedSample(imageSampleBuffer.get(), displaying);
    246248    });
  • trunk/Source/WebKit/ChangeLog

    r220532 r220538  
     12017-08-10  Tim Horton  <timothy_horton@apple.com>
     2
     3        Remove some unused lambda captures so that WebKit builds with -Wunused-lambda-capture
     4        https://bugs.webkit.org/show_bug.cgi?id=175436
     5        <rdar://problem/33667497>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * UIProcess/UserMediaPermissionRequestManagerProxy.cpp:
     10        (WebKit::UserMediaPermissionRequestManagerProxy::requestUserMediaPermissionForFrame):
     11        * UIProcess/WebsiteData/WebsiteDataStore.cpp:
     12        (WebKit::WebsiteDataStore::topPrivatelyControlledDomainsWithWebsiteData):
     13
    1142017-08-10  Michael Catanzaro  <mcatanzaro@igalia.com>
    215
  • trunk/Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp

    r219588 r220538  
    306306    };
    307307
    308     auto haveDeviceSaltHandler = [this, userMediaID, validHandler = WTFMove(validHandler), invalidHandler = WTFMove(invalidHandler), audioConstraints = WebCore::MediaConstraints(audioConstraints), videoConstraints = WebCore::MediaConstraints(videoConstraints)](uint64_t userMediaID, String&& deviceIdentifierHashSalt, bool originHasPersistentAccess) mutable {
     308    auto haveDeviceSaltHandler = [this, validHandler = WTFMove(validHandler), invalidHandler = WTFMove(invalidHandler), audioConstraints = WebCore::MediaConstraints(audioConstraints), videoConstraints = WebCore::MediaConstraints(videoConstraints)](uint64_t userMediaID, String&& deviceIdentifierHashSalt, bool originHasPersistentAccess) mutable {
    309309
    310310        auto request = m_pendingDeviceRequests.take(userMediaID);
  • trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp

    r220412 r220538  
    539539void WebsiteDataStore::topPrivatelyControlledDomainsWithWebsiteData(OptionSet<WebsiteDataType> dataTypes, OptionSet<WebsiteDataFetchOption> fetchOptions, Function<void(HashSet<String>&&)>&& completionHandler)
    540540{
    541     fetchData(dataTypes, fetchOptions, [completionHandler = WTFMove(completionHandler), this, protectedThis = makeRef(*this)](auto&& existingDataRecords) {
     541    fetchData(dataTypes, fetchOptions, [completionHandler = WTFMove(completionHandler), protectedThis = makeRef(*this)](auto&& existingDataRecords) {
    542542        HashSet<String> domainsWithDataRecords;
    543543        for (auto&& dataRecord : existingDataRecords) {
  • trunk/Tools/ChangeLog

    r220537 r220538  
     12017-08-10  Tim Horton  <timothy_horton@apple.com>
     2
     3        Remove some unused lambda captures so that WebKit builds with -Wunused-lambda-capture
     4        https://bugs.webkit.org/show_bug.cgi?id=175436
     5        <rdar://problem/33667497>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp:
     10        (TestWebKitAPI::TEST_F):
     11
    1122017-08-10  Lucas Forschler  <lforschler@apple.com>
    213
  • trunk/Tools/TestWebKitAPI/Tests/WebCore/FileMonitor.cpp

    r219219 r220538  
    150150    auto testQueue = WorkQueue::create("Test Work Queue");
    151151
    152     auto monitor = std::make_unique<FileMonitor>(tempFilePath(), testQueue.copyRef(), [this] (FileMonitor::FileChangeType type) {
     152    auto monitor = std::make_unique<FileMonitor>(tempFilePath(), testQueue.copyRef(), [] (FileMonitor::FileChangeType type) {
    153153        ASSERT(!RunLoop::isMain());
    154154        switch (type) {
     
    192192    auto testQueue = WorkQueue::create("Test Work Queue");
    193193
    194     auto monitor = std::make_unique<FileMonitor>(tempFilePath(), testQueue.copyRef(), [this] (FileMonitor::FileChangeType type) {
     194    auto monitor = std::make_unique<FileMonitor>(tempFilePath(), testQueue.copyRef(), [] (FileMonitor::FileChangeType type) {
    195195        ASSERT(!RunLoop::isMain());
    196196        switch (type) {
     
    252252    auto testQueue = WorkQueue::create("Test Work Queue");
    253253
    254     auto monitor = std::make_unique<FileMonitor>(tempFilePath(), testQueue.copyRef(), [this] (FileMonitor::FileChangeType type) {
     254    auto monitor = std::make_unique<FileMonitor>(tempFilePath(), testQueue.copyRef(), [] (FileMonitor::FileChangeType type) {
    255255        ASSERT(!RunLoop::isMain());
    256256        switch (type) {
     
    291291    auto testQueue = WorkQueue::create("Test Work Queue");
    292292
    293     auto monitor = std::make_unique<FileMonitor>(tempFilePath(), testQueue.copyRef(), [this] (FileMonitor::FileChangeType type) {
     293    auto monitor = std::make_unique<FileMonitor>(tempFilePath(), testQueue.copyRef(), [] (FileMonitor::FileChangeType type) {
    294294        ASSERT(!RunLoop::isMain());
    295295        switch (type) {
     
    348348    auto testQueue = WorkQueue::create("Test Work Queue");
    349349
    350     auto monitor = std::make_unique<FileMonitor>(tempFilePath(), testQueue.copyRef(), [this] (FileMonitor::FileChangeType type) {
     350    auto monitor = std::make_unique<FileMonitor>(tempFilePath(), testQueue.copyRef(), [] (FileMonitor::FileChangeType type) {
    351351        ASSERT(!RunLoop::isMain());
    352352        switch (type) {
Note: See TracChangeset for help on using the changeset viewer.