Changeset 136965 in webkit


Ignore:
Timestamp:
Dec 7, 2012 11:16:49 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Update BlackBerry Port to use new Graphics::createBuffer BufferType enum values.
https://bugs.webkit.org/show_bug.cgi?id=104121

Patch by Mike Lattanzio <mlattanzio@rim.com> on 2012-12-07
Reviewed by Rob Buis.

Source/WebKit/blackberry:

Update createBuffer calls to reflect new BufferType enum.
Set buffers opaque if possible to avoid unnecessary blends.
Internal PR 254649
Internal Review: Jakob Petsovits

  • WebKitSupport/BackingStoreTile.cpp:

(BlackBerry::WebKit::TileBuffer::nativeBuffer):

Tools:

Update createBuffer call to reflect new BufferType enum.
Internal PR 254649
Internal Review: Jakob Petsovits

DRT is always backed for maximum compatibility.

  • DumpRenderTree/blackberry/PixelDumpSupportBlackBerry.cpp:

(createBitmapContextFromWebView):

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/BackingStore.cpp

    r136761 r136965  
    11201120
    11211121        BlackBerry::Platform::Graphics::Buffer* nativeBuffer = backBuffer->nativeBuffer();
     1122        BlackBerry::Platform::Graphics::setBufferOpaqueHint(nativeBuffer, !Color(m_webPage->settings()->backgroundColor()).hasAlpha());
    11221123
    11231124        // TODO: This code is only needed for EGLImage code path, but preferrably BackingStore
  • trunk/Source/WebKit/blackberry/ChangeLog

    r136961 r136965  
     12012-12-07  Mike Lattanzio  <mlattanzio@rim.com>
     2
     3        [BlackBerry] Update BlackBerry Port to use new Graphics::createBuffer BufferType enum values.
     4        https://bugs.webkit.org/show_bug.cgi?id=104121
     5
     6        Reviewed by Rob Buis.
     7
     8        Update createBuffer calls to reflect new BufferType enum.
     9        Set buffers opaque if possible to avoid unnecessary blends.
     10        Internal PR 254649
     11        Internal Review: Jakob Petsovits
     12
     13        * WebKitSupport/BackingStoreTile.cpp:
     14        (BlackBerry::WebKit::TileBuffer::nativeBuffer):
     15
    1162012-12-07  Andrew Lo  <anlo@rim.com>
    217
  • trunk/Source/WebKit/blackberry/WebKitSupport/BackingStoreTile.cpp

    r136503 r136965  
    102102{
    103103    if (!m_nativeBuffer)
    104         m_nativeBuffer = createBuffer(m_size, Platform::Graphics::TileBuffer, SurfacePool::globalSurfacePool()->sharedPixmapGroup());
     104        m_nativeBuffer = createBuffer(m_size, Platform::Graphics::AlwaysBacked, SurfacePool::globalSurfacePool()->sharedPixmapGroup());
    105105
    106106    return m_nativeBuffer;
  • trunk/Tools/ChangeLog

    r136962 r136965  
     12012-12-07  Mike Lattanzio  <mlattanzio@rim.com>
     2
     3        [BlackBerry] Update BlackBerry Port to use new Graphics::createBuffer BufferType enum values.
     4        https://bugs.webkit.org/show_bug.cgi?id=104121
     5
     6        Reviewed by Rob Buis.
     7
     8        Update createBuffer call to reflect new BufferType enum.
     9        Internal PR 254649
     10        Internal Review: Jakob Petsovits
     11
     12        DRT is always backed for maximum compatibility.
     13
     14        * DumpRenderTree/blackberry/PixelDumpSupportBlackBerry.cpp:
     15        (createBitmapContextFromWebView):
     16
    1172012-12-07  Jochen Eisinger  <jochen@chromium.org>
    218
  • trunk/Tools/DumpRenderTree/blackberry/PixelDumpSupportBlackBerry.cpp

    r134359 r136965  
    8787    }
    8888#else
    89     BlackBerry::Platform::Graphics::Buffer* buffer = BlackBerry::Platform::Graphics::createBuffer(windowSize, BlackBerry::Platform::Graphics::TemporaryBuffer);
     89    BlackBerry::Platform::Graphics::Buffer* buffer = BlackBerry::Platform::Graphics::createBuffer(windowSize, BlackBerry::Platform::Graphics::AlwaysBacked);
    9090    BlackBerry::Platform::Graphics::Drawable* drawable = BlackBerry::Platform::Graphics::lockBufferDrawable(buffer);
    9191    if (drawable) {
Note: See TracChangeset for help on using the changeset viewer.