Changeset 147776 in webkit
- Timestamp:
- Apr 5, 2013 12:27:11 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r147754 r147776 1 2013-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 1 16 2013-04-05 Timothy Hatcher <timothy@apple.com> 2 17 -
trunk/Source/WebKit2/UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.cpp
r144907 r147776 27 27 28 28 #include "config.h" 29 #if USE(COORDINATED_GRAPHICS) 30 29 31 #include "WKCoordinatedScene.h" 30 32 … … 48 50 toImpl(layer)->scrollBy(WebCore::FloatSize(offset.width, offset.height)); 49 51 } 52 #endif -
trunk/Source/WebKit2/UIProcess/efl/WebView.cpp
r147741 r147776 95 95 { 96 96 m_page->initializeWebPage(); 97 #if USE(COORDINATED_GRAPHICS) 97 98 if (CoordinatedGraphicsScene* scene = coordinatedGraphicsScene()) 98 99 scene->setActive(true); 100 #endif 99 101 } 100 102 … … 134 136 } 135 137 138 #if USE(COORDINATED_GRAPHICS) 136 139 void WebView::paintToCurrentGLContext() 137 140 { … … 146 149 scene->paintToCurrentGLContext(transformToScene().toTransformationMatrix(), /* opacity */ 1, viewport); 147 150 } 151 #endif 148 152 149 153 void WebView::paintToCairoSurface(cairo_surface_t* surface) 150 154 { 155 #if USE(COORDINATED_GRAPHICS) 151 156 CoordinatedGraphicsScene* scene = coordinatedGraphicsScene(); 152 157 if (!scene) 153 158 return; 154 159 #endif 155 160 PlatformContextCairo context(cairo_create(surface)); 156 161 … … 160 165 cairo_matrix_t transform = { effectiveScale, 0, 0, effectiveScale, - position.x() * m_page->deviceScaleFactor(), - position.y() * m_page->deviceScaleFactor() }; 161 166 cairo_set_matrix(context.cr(), &transform); 162 167 #if USE(COORDINATED_GRAPHICS) 163 168 scene->paintToGraphicsContext(&context); 169 #endif 164 170 } 165 171 … … 257 263 } 258 264 265 #if USE(COORDINATED_GRAPHICS) 259 266 CoordinatedGraphicsScene* WebView::coordinatedGraphicsScene() 260 267 { … … 269 276 return layerTreeHostProxy->coordinatedGraphicsScene(); 270 277 } 278 #endif 271 279 272 280 void WebView::updateViewportSize() … … 437 445 } 438 446 447 #if USE(COORDINATED_GRAPHICS) 439 448 void WebView::enterAcceleratedCompositingMode(const LayerTreeContext&) 440 449 { … … 448 457 scene->setActive(false); 449 458 } 459 #endif 450 460 451 461 void WebView::updateAcceleratedCompositingMode(const LayerTreeContext&)
Note: See TracChangeset
for help on using the changeset viewer.