• commit-queue@webkit.org's avatar
    [BlackBerry] Always create a compositor · 52fa1543
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=87598
    
    Patch by Arvid Nilsson <anilsson@rim.com> on 2012-05-28
    Reviewed by Rob Buis.
    
    There will likely be compositing layers either due to web content or
    due to overlays.
    
    Defer initialization of OpenGL objects (i.e., delay creation of the
    LayerRenderer object) until we actually need to draw and there are such
    layers, to avoid initializing OpenGL in the unlikely case that there
    are no compositing layers or overlay layers.
    
    PR #156811
    
    * Api/WebPage.cpp:
    (BlackBerry::WebKit::WebPagePrivate::init):
    (BlackBerry::WebKit::WebPagePrivate::createCompositor):
    * Api/WebPageCompositor.cpp:
    (BlackBerry::WebKit::WebPageCompositorPrivate::setContext):
    (BlackBerry::WebKit::WebPageCompositorPrivate::prepareFrame):
    (BlackBerry::WebKit::WebPageCompositorPrivate::render):
    (BlackBerry::WebKit::WebPageCompositorPrivate::drawLayers):
    * Api/WebPageCompositor_p.h:
    (WebPageCompositorPrivate):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    52fa1543
ChangeLog 178 KB