⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243475 in webkit


Ignore:
Timestamp:
Mar 25, 2019, 5:43:22 PM (7 years ago)
Author:
Fujii Hironori
Message:

[Coordinated Graphics][WinCairo] ASSERTION FAILED: state.id == m_nicosia.state.id
https://bugs.webkit.org/show_bug.cgi?id=196190

Reviewed by Žan Doberšek.

This assertion assumes the pre-committed and the committed scenes
are identical. But, the pre-committed scene is updated in the main
thread. Removed the false assertion.

  • Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:

(WebKit::CoordinatedGraphicsScene::purgeGLResources): Remove the
assertion. Removed layers of committed scene, not pre-committed
scene.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r243472 r243475  
     12019-03-25  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Coordinated Graphics][WinCairo] ASSERTION FAILED: state.id == m_nicosia.state.id
     4        https://bugs.webkit.org/show_bug.cgi?id=196190
     5
     6        Reviewed by Žan Doberšek.
     7
     8        This assertion assumes the pre-committed and the committed scenes
     9        are identical. But, the pre-committed scene is updated in the main
     10        thread. Removed the false assertion.
     11
     12        * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
     13        (WebKit::CoordinatedGraphicsScene::purgeGLResources): Remove the
     14        assertion. Removed layers of committed scene, not pre-committed
     15        scene.
     16
    1172019-03-25  Brady Eidson  <beidson@apple.com>
    218
  • trunk/Source/WebKit/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp

    r242205 r243475  
    432432    if (m_nicosia.scene) {
    433433        m_nicosia.scene->accessState(
    434             [this](const Nicosia::Scene::State& state)
     434            [](Nicosia::Scene::State& state)
    435435            {
    436                 ASSERT(state.id == m_nicosia.state.id);
    437                 for (auto& layer : m_nicosia.state.layers)
     436                for (auto& layer : state.layers)
    438437                    removeLayer(*layer);
    439                 m_nicosia.state.layers = { };
    440                 m_nicosia.state.rootLayer = nullptr;
     438                state.layers = { };
     439                state.rootLayer = nullptr;
    441440            });
    442441        m_nicosia.scene = nullptr;
Note: See TracChangeset for help on using the changeset viewer.