Changeset 173166 in webkit
- Timestamp:
- Sep 1, 2014 7:05:04 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r173165 r173166 1 2014-09-01 Ryuan Choi <ryuan.choi@gmail.com> 2 3 Build break on the EFL port since r173163 4 https://bugs.webkit.org/show_bug.cgi?id=136443 5 6 Unreviewed build fix. 7 8 * UIProcess/BackingStore.cpp: 9 (WebKit::BackingStore::BackingStore): 10 * UIProcess/BackingStore.h: 11 * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp: 12 (WebKit::CoordinatedDrawingAreaProxy::CoordinatedDrawingAreaProxy): 13 (WebKit::CoordinatedDrawingAreaProxy::updateViewport): 14 (WebKit::CoordinatedDrawingAreaProxy::contentsRect): 15 (WebKit::CoordinatedDrawingAreaProxy::update): 16 (WebKit::CoordinatedDrawingAreaProxy::didUpdateBackingStoreState): 17 (WebKit::CoordinatedDrawingAreaProxy::incorporateUpdate): 18 (WebKit::CoordinatedDrawingAreaProxy::sendUpdateBackingStoreState): 19 (WebKit::CoordinatedDrawingAreaProxy::waitForAndDispatchDidUpdateBackingStoreState): 20 (WebKit::CoordinatedDrawingAreaProxy::enterAcceleratedCompositingMode): 21 (WebKit::CoordinatedDrawingAreaProxy::exitAcceleratedCompositingMode): 22 (WebKit::CoordinatedDrawingAreaProxy::updateAcceleratedCompositingMode): 23 * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h: 24 (WebKit::CoordinatedDrawingAreaProxy::page): 25 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp: 26 (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy): 27 (WebKit::CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy): 28 (WebKit::CoordinatedLayerTreeHostProxy::commitCoordinatedGraphicsState): 29 (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect): 30 (WebKit::CoordinatedLayerTreeHostProxy::renderNextFrame): 31 (WebKit::CoordinatedLayerTreeHostProxy::purgeBackingStores): 32 (WebKit::CoordinatedLayerTreeHostProxy::commitScrollOffset): 33 * UIProcess/CoordinatedGraphics/WebView.cpp: 34 (WebKit::WebView::createDrawingAreaProxy): 35 * UIProcess/cairo/BackingStoreCairo.cpp: 36 (WebKit::BackingStore::incorporateUpdate): 37 1 38 2014-09-01 Tim Horton <timothy_horton@apple.com> 2 39 -
trunk/Source/WebKit2/UIProcess/BackingStore.cpp
r156688 r173166 34 34 namespace WebKit { 35 35 36 BackingStore::BackingStore(const IntSize& size, float deviceScaleFactor, WebPageProxy *webPageProxy)36 BackingStore::BackingStore(const IntSize& size, float deviceScaleFactor, WebPageProxy& webPageProxy) 37 37 : m_size(size) 38 38 , m_deviceScaleFactor(deviceScaleFactor) -
trunk/Source/WebKit2/UIProcess/BackingStore.h
r166138 r173166 46 46 47 47 public: 48 BackingStore(const WebCore::IntSize&, float deviceScaleFactor, WebPageProxy *);48 BackingStore(const WebCore::IntSize&, float deviceScaleFactor, WebPageProxy&); 49 49 ~BackingStore(); 50 50 … … 65 65 WebCore::IntSize m_size; 66 66 float m_deviceScaleFactor; 67 WebPageProxy *m_webPageProxy;67 WebPageProxy& m_webPageProxy; 68 68 69 69 #if USE(CAIRO) -
trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp
r164844 r173166 45 45 namespace WebKit { 46 46 47 CoordinatedDrawingAreaProxy::CoordinatedDrawingAreaProxy(WebPageProxy *webPageProxy)47 CoordinatedDrawingAreaProxy::CoordinatedDrawingAreaProxy(WebPageProxy& webPageProxy) 48 48 : DrawingAreaProxy(DrawingAreaTypeCoordinated, webPageProxy) 49 49 , m_currentBackingStoreStateID(0) … … 55 55 { 56 56 // Construct the proxy early to allow messages to be sent to the web process while AC is entered there. 57 if (webPageProxy ->pageGroup().preferences().forceCompositingMode())57 if (webPageProxy.pageGroup().preferences().forceCompositingMode()) 58 58 m_coordinatedLayerTreeHostProxy = adoptPtr(new CoordinatedLayerTreeHostProxy(this)); 59 59 } … … 111 111 void CoordinatedDrawingAreaProxy::updateViewport() 112 112 { 113 m_webPageProxy ->setViewNeedsDisplay(viewportVisibleRect());113 m_webPageProxy.setViewNeedsDisplay(viewportVisibleRect()); 114 114 } 115 115 116 116 WebCore::IntRect CoordinatedDrawingAreaProxy::contentsRect() const 117 117 { 118 return IntRect(IntPoint::zero(), m_webPageProxy ->viewSize());118 return IntRect(IntPoint::zero(), m_webPageProxy.viewSize()); 119 119 } 120 120 … … 163 163 164 164 incorporateUpdate(updateInfo); 165 m_webPageProxy ->process().send(Messages::DrawingArea::DidUpdate(), m_webPageProxy->pageID());165 m_webPageProxy.process().send(Messages::DrawingArea::DidUpdate(), m_webPageProxy.pageID()); 166 166 } 167 167 … … 175 175 176 176 // Stop the responsiveness timer that was started in sendUpdateBackingStoreState. 177 m_webPageProxy ->process().responsivenessTimer()->stop();177 m_webPageProxy.process().responsivenessTimer()->stop(); 178 178 179 179 if (layerTreeContext != m_layerTreeContext) { … … 249 249 250 250 if (shouldScroll) 251 m_webPageProxy ->scrollView(updateInfo.scrollRect, updateInfo.scrollOffset);252 253 if (shouldScroll && !m_webPageProxy ->canScrollView())254 m_webPageProxy ->setViewNeedsDisplay(IntRect(IntPoint(), m_webPageProxy->viewSize()));251 m_webPageProxy.scrollView(updateInfo.scrollRect, updateInfo.scrollOffset); 252 253 if (shouldScroll && !m_webPageProxy.canScrollView()) 254 m_webPageProxy.setViewNeedsDisplay(IntRect(IntPoint(), m_webPageProxy.viewSize())); 255 255 else { 256 256 for (size_t i = 0; i < updateInfo.updateRects.size(); ++i) 257 m_webPageProxy ->setViewNeedsDisplay(updateInfo.updateRects[i]);257 m_webPageProxy.setViewNeedsDisplay(updateInfo.updateRects[i]); 258 258 } 259 259 260 260 if (shouldScroll) 261 m_webPageProxy ->displayView();261 m_webPageProxy.displayView(); 262 262 } 263 263 … … 272 272 ASSERT(m_currentBackingStoreStateID < m_nextBackingStoreStateID); 273 273 274 if (!m_webPageProxy ->isValid())274 if (!m_webPageProxy.isValid()) 275 275 return; 276 276 … … 278 278 return; 279 279 280 if (m_webPageProxy ->viewSize().isEmpty() && !m_webPageProxy->useFixedLayout())280 if (m_webPageProxy.viewSize().isEmpty() && !m_webPageProxy.useFixedLayout()) 281 281 return; 282 282 283 283 m_isWaitingForDidUpdateBackingStoreState = respondImmediatelyOrNot == RespondImmediately; 284 284 285 m_webPageProxy ->process().send(Messages::DrawingArea::UpdateBackingStoreState(m_nextBackingStoreStateID, respondImmediatelyOrNot == RespondImmediately, m_webPageProxy->deviceScaleFactor(), m_size, m_scrollOffset), m_webPageProxy->pageID());285 m_webPageProxy.process().send(Messages::DrawingArea::UpdateBackingStoreState(m_nextBackingStoreStateID, respondImmediatelyOrNot == RespondImmediately, m_webPageProxy.deviceScaleFactor(), m_size, m_scrollOffset), m_webPageProxy.pageID()); 286 286 m_scrollOffset = IntSize(); 287 287 … … 289 289 // Start the responsiveness timer. We will stop it when we hear back from the WebProcess 290 290 // in didUpdateBackingStoreState. 291 m_webPageProxy ->process().responsivenessTimer()->start();291 m_webPageProxy.process().responsivenessTimer()->start(); 292 292 } 293 293 … … 303 303 ASSERT(m_isWaitingForDidUpdateBackingStoreState); 304 304 305 if (!m_webPageProxy ->isValid())306 return; 307 if (m_webPageProxy ->process().state() == WebProcessProxy::State::Launching)305 if (!m_webPageProxy.isValid()) 306 return; 307 if (m_webPageProxy.process().state() == WebProcessProxy::State::Launching) 308 308 return; 309 309 … … 314 314 315 315 // The timeout, in seconds, we use when waiting for a DidUpdateBackingStoreState message when we're asked to paint. 316 m_webPageProxy ->process().connection()->waitForAndDispatchImmediately<Messages::DrawingAreaProxy::DidUpdateBackingStoreState>(m_webPageProxy->pageID(), std::chrono::milliseconds(500));316 m_webPageProxy.process().connection()->waitForAndDispatchImmediately<Messages::DrawingAreaProxy::DidUpdateBackingStoreState>(m_webPageProxy.pageID(), std::chrono::milliseconds(500)); 317 317 } 318 318 … … 323 323 m_backingStore = nullptr; 324 324 m_layerTreeContext = layerTreeContext; 325 m_webPageProxy ->enterAcceleratedCompositingMode(layerTreeContext);325 m_webPageProxy.enterAcceleratedCompositingMode(layerTreeContext); 326 326 if (!m_coordinatedLayerTreeHostProxy) 327 327 m_coordinatedLayerTreeHostProxy = adoptPtr(new CoordinatedLayerTreeHostProxy(this)); … … 339 339 340 340 m_layerTreeContext = LayerTreeContext(); 341 m_webPageProxy ->exitAcceleratedCompositingMode();341 m_webPageProxy.exitAcceleratedCompositingMode(); 342 342 } 343 343 … … 347 347 348 348 m_layerTreeContext = layerTreeContext; 349 m_webPageProxy ->updateAcceleratedCompositingMode(layerTreeContext);349 m_webPageProxy.updateAcceleratedCompositingMode(layerTreeContext); 350 350 } 351 351 -
trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h
r163079 r173166 46 46 class CoordinatedDrawingAreaProxy : public DrawingAreaProxy { 47 47 public: 48 explicit CoordinatedDrawingAreaProxy(WebPageProxy *);48 explicit CoordinatedDrawingAreaProxy(WebPageProxy&); 49 49 virtual ~CoordinatedDrawingAreaProxy(); 50 50 … … 64 64 void updateViewport(); 65 65 66 WebPageProxy *page() { return m_webPageProxy; }66 WebPageProxy& page() { return m_webPageProxy; } 67 67 private: 68 68 // DrawingAreaProxy -
trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp
r170774 r173166 39 39 , m_scene(adoptRef(new CoordinatedGraphicsScene(this))) 40 40 { 41 m_drawingAreaProxy->page() ->process().addMessageReceiver(Messages::CoordinatedLayerTreeHostProxy::messageReceiverName(), m_drawingAreaProxy->page()->pageID(), *this);41 m_drawingAreaProxy->page().process().addMessageReceiver(Messages::CoordinatedLayerTreeHostProxy::messageReceiverName(), m_drawingAreaProxy->page().pageID(), *this); 42 42 } 43 43 44 44 CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy() 45 45 { 46 m_drawingAreaProxy->page() ->process().removeMessageReceiver(Messages::CoordinatedLayerTreeHostProxy::messageReceiverName(), m_drawingAreaProxy->page()->pageID());46 m_drawingAreaProxy->page().process().removeMessageReceiver(Messages::CoordinatedLayerTreeHostProxy::messageReceiverName(), m_drawingAreaProxy->page().pageID()); 47 47 m_scene->detach(); 48 48 } … … 67 67 updateViewport(); 68 68 #if USE(TILED_BACKING_STORE) 69 m_drawingAreaProxy->page() ->didRenderFrame(graphicsState.contentsSize, graphicsState.coveredRect);69 m_drawingAreaProxy->page().didRenderFrame(graphicsState.contentsSize, graphicsState.coveredRect); 70 70 #endif 71 71 } … … 83 83 return; 84 84 85 m_drawingAreaProxy->page() ->process().send(Messages::CoordinatedLayerTreeHost::SetVisibleContentsRect(rect, trajectoryVector), m_drawingAreaProxy->page()->pageID());85 m_drawingAreaProxy->page().process().send(Messages::CoordinatedLayerTreeHost::SetVisibleContentsRect(rect, trajectoryVector), m_drawingAreaProxy->page().pageID()); 86 86 m_lastSentVisibleRect = rect; 87 87 m_lastSentTrajectoryVector = trajectoryVector; … … 90 90 void CoordinatedLayerTreeHostProxy::renderNextFrame() 91 91 { 92 m_drawingAreaProxy->page() ->process().send(Messages::CoordinatedLayerTreeHost::RenderNextFrame(), m_drawingAreaProxy->page()->pageID());92 m_drawingAreaProxy->page().process().send(Messages::CoordinatedLayerTreeHost::RenderNextFrame(), m_drawingAreaProxy->page().pageID()); 93 93 } 94 94 95 95 void CoordinatedLayerTreeHostProxy::purgeBackingStores() 96 96 { 97 m_drawingAreaProxy->page() ->process().send(Messages::CoordinatedLayerTreeHost::PurgeBackingStores(), m_drawingAreaProxy->page()->pageID());97 m_drawingAreaProxy->page().process().send(Messages::CoordinatedLayerTreeHost::PurgeBackingStores(), m_drawingAreaProxy->page().pageID()); 98 98 } 99 99 … … 108 108 void CoordinatedLayerTreeHostProxy::commitScrollOffset(uint32_t layerID, const IntSize& offset) 109 109 { 110 m_drawingAreaProxy->page() ->process().send(Messages::CoordinatedLayerTreeHost::CommitScrollOffset(layerID, offset), m_drawingAreaProxy->page()->pageID());110 m_drawingAreaProxy->page().process().send(Messages::CoordinatedLayerTreeHost::CommitScrollOffset(layerID, offset), m_drawingAreaProxy->page().pageID()); 111 111 } 112 112 -
trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.cpp
r170774 r173166 287 287 std::unique_ptr<DrawingAreaProxy> WebView::createDrawingAreaProxy() 288 288 { 289 return std::make_unique<CoordinatedDrawingAreaProxy>( page());289 return std::make_unique<CoordinatedDrawingAreaProxy>(*m_page); 290 290 } 291 291 -
trunk/Source/WebKit2/UIProcess/cairo/BackingStoreCairo.cpp
r169445 r173166 74 74 if (!m_backingStore) 75 75 #if PLATFORM(EFL) 76 m_backingStore = WidgetBackingStoreCairo::create(EwkView::toEvasObject(toAPI( m_webPageProxy)), size(), deviceScaleFactor());76 m_backingStore = WidgetBackingStoreCairo::create(EwkView::toEvasObject(toAPI(&m_webPageProxy)), size(), deviceScaleFactor()); 77 77 #else 78 m_backingStore = createBackingStoreForGTK(m_webPageProxy ->viewWidget(), size(), deviceScaleFactor());78 m_backingStore = createBackingStoreForGTK(m_webPageProxy.viewWidget(), size(), deviceScaleFactor()); 79 79 #endif 80 80
Note: See TracChangeset
for help on using the changeset viewer.