Changeset 112356 in webkit


Ignore:
Timestamp:
Mar 27, 2012 7:29:21 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

webkit_unit_tests crashing on chromium lion in CCLayerTreeHostTestCompositeAndReadbackWhileInvisible
https://bugs.webkit.org/show_bug.cgi?id=82382

Patch by James Robinson <jamesr@chromium.org> on 2012-03-27
Reviewed by Adrienne Walker.

Use UnsignedWithZeroKeyHashTraits trait for the HashSet<WebGLId> m_usedTextures in
CompositorFakeWebGraphicsContext3DWithTextureTracking. This set is used to track all textures that are bound in
a given context during a test. During ..CompositeAndReadback.. we bind texture id 0. By default, HashSet<T>
where T is an unsigned does not allow 0 as a value. WebGLId is typedef'd to unsigned.

  • tests/CCLayerTreeHostTest.cpp:

(CompositorFakeWebGraphicsContext3DWithTextureTracking):

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r112351 r112356  
     12012-03-27  James Robinson  <jamesr@chromium.org>
     2
     3        webkit_unit_tests crashing on chromium lion in CCLayerTreeHostTestCompositeAndReadbackWhileInvisible
     4        https://bugs.webkit.org/show_bug.cgi?id=82382
     5
     6        Reviewed by Adrienne Walker.
     7
     8        Use UnsignedWithZeroKeyHashTraits trait for the HashSet<WebGLId> m_usedTextures in
     9        CompositorFakeWebGraphicsContext3DWithTextureTracking. This set is used to track all textures that are bound in
     10        a given context during a test. During ..CompositeAndReadback.. we bind texture id 0. By default, HashSet<T>
     11        where T is an unsigned does not allow 0 as a value. WebGLId is typedef'd to unsigned.
     12
     13        * tests/CCLayerTreeHostTest.cpp:
     14        (CompositorFakeWebGraphicsContext3DWithTextureTracking):
     15
    1162012-03-27  James Robinson  <jamesr@chromium.org>
    217
  • trunk/Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp

    r112327 r112356  
    210210
    211211    Vector<WebGLId> m_textures;
    212     HashSet<WebGLId> m_usedTextures;
     212    HashSet<WebGLId, DefaultHash<WebGLId>::Hash, UnsignedWithZeroKeyHashTraits<WebGLId> > m_usedTextures;
    213213};
    214214
Note: See TracChangeset for help on using the changeset viewer.