Changeset 133723 in webkit


Ignore:
Timestamp:
Nov 6, 2012 10:31:20 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2] API test crash with accelerated compositing on.
https://bugs.webkit.org/show_bug.cgi?id=101384

Patch by Viatcheslav Ostapenko <v.ostapenko@samsung.com> on 2012-11-06
Reviewed by Gyuyoung Kim.

If accelerated compositing is enabled API tests should create GL evas engine
instead of default one.
Also, in API tests first window resize and display often comes earlier
than enterAcceleratedCompositingMode call, so let's create GL surface in
_ewk_view_smart_calculate on first window resize.

  • UIProcess/API/efl/ewk_view.cpp:

(_ewk_view_smart_calculate):

  • UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:

(EWK2UnitTest::EWK2UnitTestBase::SetUp):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r133702 r133723  
     12012-11-06  Viatcheslav Ostapenko  <v.ostapenko@samsung.com>
     2
     3        [EFL][WK2] API test crash with accelerated compositing on.
     4        https://bugs.webkit.org/show_bug.cgi?id=101384
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        If accelerated compositing is enabled API tests should create GL evas engine
     9        instead of default one.
     10        Also, in API tests first window resize and display often comes earlier
     11        than enterAcceleratedCompositingMode call, so let's create GL surface in
     12        _ewk_view_smart_calculate on first window resize.
     13
     14        * UIProcess/API/efl/ewk_view.cpp:
     15        (_ewk_view_smart_calculate):
     16        * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
     17        (EWK2UnitTest::EWK2UnitTestBase::SetUp):
     18
    1192012-11-06  Anders Carlsson  <andersca@apple.com>
    220
  • trunk/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp

    r133587 r133723  
    388388#if USE(ACCELERATED_COMPOSITING)
    389389        // Recreate surface if needed.
    390         if (impl->evasGLSurface()) {
     390        if (impl->evasGLSurface())
    391391            impl->clearEvasGLSurface();
    392             impl->createGLSurface(IntSize(width, height));
    393         }
     392
     393        impl->createGLSurface(IntSize(width, height));
    394394#endif
    395395#if USE(TILED_BACKING_STORE)
  • trunk/Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp

    r131851 r133723  
    4949    unsigned int height = environment->defaultHeight();
    5050
     51#if defined(WTF_USE_ACCELERATED_COMPOSITING) && defined(HAVE_ECORE_X)
     52    const char* engine = "opengl_x11";
     53    m_ecoreEvas = ecore_evas_new(engine, 0, 0, width, height, 0);
     54#else
    5155    m_ecoreEvas = ecore_evas_new(0, 0, 0, width, height, 0);
     56#endif
    5257
    5358    ecore_evas_show(m_ecoreEvas);
Note: See TracChangeset for help on using the changeset viewer.