Changeset 147776 in webkit


Ignore:
Timestamp:
Apr 5, 2013 12:27:11 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2] --no-tiled-backing-store build fails because of not used #if USE(COORDINATED_GRAPHICS)
https://bugs.webkit.org/show_bug.cgi?id=113629

Patch by Ed Bartosh <bartosh@gmail.com> on 2013-04-05
Reviewed by Simon Fraser.

Wrapped code related to coordinated graphics with #if USE(COORDINATED_GRAPHICS)

  • UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.cpp:
  • UIProcess/efl/WebView.cpp:

(WebKit::WebView::initialize):
(WebKit):
(WebKit::WebView::paintToCairoSurface):
(WebKit::WebView::updateViewportSize):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r147754 r147776  
     12013-04-05  Ed Bartosh  <bartosh@gmail.com>
     2
     3        [EFL][WK2] --no-tiled-backing-store build fails because of not used #if USE(COORDINATED_GRAPHICS)
     4        https://bugs.webkit.org/show_bug.cgi?id=113629
     5
     6        Reviewed by Simon Fraser.
     7
     8        Wrapped code related to coordinated graphics with #if USE(COORDINATED_GRAPHICS)
     9        * UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.cpp:
     10        * UIProcess/efl/WebView.cpp:
     11        (WebKit::WebView::initialize):
     12        (WebKit):
     13        (WebKit::WebView::paintToCairoSurface):
     14        (WebKit::WebView::updateViewportSize):
     15
    1162013-04-05  Timothy Hatcher  <timothy@apple.com>
    217
  • trunk/Source/WebKit2/UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.cpp

    r144907 r147776  
    2727
    2828#include "config.h"
     29#if USE(COORDINATED_GRAPHICS)
     30
    2931#include "WKCoordinatedScene.h"
    3032
     
    4850    toImpl(layer)->scrollBy(WebCore::FloatSize(offset.width, offset.height));
    4951}
     52#endif
  • trunk/Source/WebKit2/UIProcess/efl/WebView.cpp

    r147741 r147776  
    9595{
    9696    m_page->initializeWebPage();
     97#if USE(COORDINATED_GRAPHICS)
    9798    if (CoordinatedGraphicsScene* scene = coordinatedGraphicsScene())
    9899        scene->setActive(true);
     100#endif
    99101}
    100102
     
    134136}
    135137
     138#if USE(COORDINATED_GRAPHICS)
    136139void WebView::paintToCurrentGLContext()
    137140{
     
    146149    scene->paintToCurrentGLContext(transformToScene().toTransformationMatrix(), /* opacity */ 1, viewport);
    147150}
     151#endif
    148152
    149153void WebView::paintToCairoSurface(cairo_surface_t* surface)
    150154{
     155#if USE(COORDINATED_GRAPHICS)
    151156    CoordinatedGraphicsScene* scene = coordinatedGraphicsScene();
    152157    if (!scene)
    153158        return;
    154 
     159#endif
    155160    PlatformContextCairo context(cairo_create(surface));
    156161
     
    160165    cairo_matrix_t transform = { effectiveScale, 0, 0, effectiveScale, - position.x() * m_page->deviceScaleFactor(), - position.y() * m_page->deviceScaleFactor() };
    161166    cairo_set_matrix(context.cr(), &transform);
    162 
     167#if USE(COORDINATED_GRAPHICS)
    163168    scene->paintToGraphicsContext(&context);
     169#endif
    164170}
    165171
     
    257263}
    258264
     265#if USE(COORDINATED_GRAPHICS)
    259266CoordinatedGraphicsScene* WebView::coordinatedGraphicsScene()
    260267{
     
    269276    return layerTreeHostProxy->coordinatedGraphicsScene();
    270277}
     278#endif
    271279
    272280void WebView::updateViewportSize()
     
    437445}
    438446
     447#if USE(COORDINATED_GRAPHICS)
    439448void WebView::enterAcceleratedCompositingMode(const LayerTreeContext&)
    440449{
     
    448457        scene->setActive(false);
    449458}
     459#endif
    450460
    451461void WebView::updateAcceleratedCompositingMode(const LayerTreeContext&)
Note: See TracChangeset for help on using the changeset viewer.