Changeset 200413 in webkit


Ignore:
Timestamp:
May 4, 2016 3:26:29 AM (8 years ago)
Author:
zandobersek@gmail.com
Message:

Unreviewed, fixing crashing GTK+ tests after r200407.

  • platform/graphics/texmap/TextureMapperGL.cpp:

(WebCore::TextureMapperGLData::SharedGLData::~SharedGLData):
Don't use RELEASE_ASSERT. Also fix the actual assertion,
checking that any of the values in the map matches the object
that's being destroyed, instead of checking the keys.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r200412 r200413  
     12016-05-04  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Unreviewed, fixing crashing GTK+ tests after r200407.
     4
     5        * platform/graphics/texmap/TextureMapperGL.cpp:
     6        (WebCore::TextureMapperGLData::SharedGLData::~SharedGLData):
     7        Don't use RELEASE_ASSERT. Also fix the actual assertion,
     8        checking that any of the values in the map matches the object
     9        that's being destroyed, instead of checking the keys.
     10
    1112016-05-04  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
    212
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp

    r200407 r200413  
    9090        ~SharedGLData()
    9191        {
    92             RELEASE_ASSERT(contextDataMap().contains(this));
     92            ASSERT(std::any_of(contextDataMap().begin(), contextDataMap().end(),
     93                [this](GLContextDataMap::KeyValuePairType& entry) { return entry.value == this; }));
    9394            contextDataMap().removeIf([this] (GLContextDataMap::KeyValuePairType& entry) { return entry.value == this; });
    9495        }
Note: See TracChangeset for help on using the changeset viewer.