Changeset 140808 in webkit
- Timestamp:
- Jan 25, 2013 3:03:30 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r140798 r140808 1 2013-01-25 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r140774. 4 http://trac.webkit.org/changeset/140774 5 https://bugs.webkit.org/show_bug.cgi?id=107932 6 7 Tests ScrollingCoordinatorChromiumTest.fastScrollingByDefault 8 and fastScrollingForFixedPosition are failing (Requested by 9 keishi on #webkit). 10 11 * public/WebWidget.h: 12 (WebWidget): 13 (WebKit::WebWidget::isInputThrottled): 14 (WebKit::WebWidget::renderingStats): 15 * src/WebViewImpl.cpp: 16 (WebKit::WebViewImpl::WebViewImpl): 17 (WebKit::WebViewImpl::~WebViewImpl): 18 (WebKit::WebViewImpl::renderingStats): 19 (WebKit): 20 (WebKit::WebViewImpl::setCompositorSurfaceReady): 21 (WebKit::WebViewImpl::isInputThrottled): 22 (WebKit::WebViewImpl::setIsTransparent): 23 (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): 24 * src/WebViewImpl.h: 25 1 26 2013-01-25 Eberhard Graether <egraether@google.com> 2 27 -
trunk/Source/WebKit/chromium/public/WebWidget.h
r140774 r140808 130 130 // Indicates that the compositing surface associated with this WebWidget is 131 131 // ready to use. 132 virtual void setCompositorSurfaceReady() { }132 virtual void setCompositorSurfaceReady() = 0; 133 133 134 134 // Temporary method for the embedder to notify the WebWidget that the widget … … 136 136 // removed when the WebWidget inversion patch lands --- http://crbug.com/112837 137 137 virtual void setNeedsRedraw() { } 138 139 // Temporary method for the embedder to check for throttled input. When this 140 // is true, the WebWidget is indicating that it would prefer to not receive 141 // additional input events until 142 // WebWidgetClient::didBecomeReadyForAdditionalInput is called. 143 // 144 // This method will be removed when the WebWidget inversion patch lands --- 145 // http://crbug.com/112837 146 virtual bool isInputThrottled() const { return false; } 138 147 139 148 // Called to inform the WebWidget of a change in theme. … … 239 248 virtual void instrumentCancelFrame() { } 240 249 250 // Fills in a WebRenderingStats struct containing information about rendering, e.g. count of frames rendered, time spent painting. 251 // This call is relatively expensive in threaded compositing mode, as it blocks on the compositor thread. 252 // It is safe to call in software mode, but will only give stats for rendering done in compositing mode. 253 virtual void renderingStats(WebRenderingStats&) const { } 254 241 255 // The page background color. Can be used for filling in areas without 242 256 // content. -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r140798 r140808 419 419 #if USE(ACCELERATED_COMPOSITING) 420 420 , m_layerTreeView(0) 421 , m_ownsLayerTreeView(false) 421 422 , m_rootLayer(0) 422 423 , m_rootGraphicsLayer(0) … … 425 426 , m_compositorCreationFailed(false) 426 427 , m_recreatingGraphicsContext(false) 428 , m_compositorSurfaceReady(false) 427 429 , m_inputHandlerIdentifier(-1) 428 430 #endif … … 510 512 WebViewImpl::~WebViewImpl() 511 513 { 514 if (m_ownsLayerTreeView) 515 delete m_layerTreeView; 512 516 ASSERT(!m_page); 513 517 } … … 833 837 m_gestureAnimation = WebActiveGestureAnimation::createWithTimeOffset(curve.release(), this, parameters.startTime); 834 838 scheduleAnimation(); 839 } 840 841 void WebViewImpl::renderingStats(WebRenderingStats& stats) const 842 { 843 if (m_layerTreeView) 844 m_layerTreeView->renderingStats(stats); 835 845 } 836 846 … … 1765 1775 #endif 1766 1776 1777 void WebViewImpl::setCompositorSurfaceReady() 1778 { 1779 m_compositorSurfaceReady = true; 1780 if (m_layerTreeView) 1781 m_layerTreeView->setSurfaceReady(); 1782 } 1783 1767 1784 void WebViewImpl::animate(double) 1768 1785 { … … 1942 1959 m_layerTreeView->setNeedsRedraw(); 1943 1960 #endif 1961 } 1962 1963 bool WebViewImpl::isInputThrottled() const 1964 { 1965 #if USE(ACCELERATED_COMPOSITING) 1966 if (m_layerTreeView && isAcceleratedCompositingActive()) 1967 return m_layerTreeView->commitRequested(); 1968 #endif 1969 return false; 1944 1970 } 1945 1971 … … 3580 3606 if (m_nonCompositedContentHost) 3581 3607 m_nonCompositedContentHost->setOpaque(!isTransparent); 3608 3609 if (m_layerTreeView) 3610 m_layerTreeView->setHasTransparentBackground(isTransparent); 3582 3611 } 3583 3612 … … 4063 4092 m_client->initializeLayerTreeView(this, *m_rootLayer, layerTreeViewSettings); 4064 4093 m_layerTreeView = m_client->layerTreeView(); 4094 if (!m_layerTreeView) { 4095 m_layerTreeView = Platform::current()->compositorSupport()->createLayerTreeView(this, *m_rootLayer, layerTreeViewSettings); 4096 m_ownsLayerTreeView = true; 4097 } 4065 4098 if (m_layerTreeView) { 4066 4099 if (m_webSettings->applyDeviceScaleFactorInCompositor() && page()->deviceScaleFactor() != 1) … … 4070 4103 m_layerTreeView->setVisible(visible); 4071 4104 m_layerTreeView->setPageScaleFactorAndLimits(pageScaleFactor(), m_minimumPageScaleFactor, m_maximumPageScaleFactor); 4105 if (m_compositorSurfaceReady) 4106 m_layerTreeView->setSurfaceReady(); 4072 4107 m_layerTreeView->setHasTransparentBackground(isTransparent()); 4073 4108 updateLayerTreeViewport(); -
trunk/Source/WebKit/chromium/src/WebViewImpl.h
r140798 r140808 144 144 virtual void willExitFullScreen(); 145 145 virtual void didExitFullScreen(); 146 virtual void setCompositorSurfaceReady(); 146 147 virtual void animate(double); 147 148 virtual void layout(); // Also implements WebLayerTreeViewClient::layout() … … 152 153 virtual void composite(bool finish); 153 154 virtual void setNeedsRedraw(); 155 virtual bool isInputThrottled() const; 154 156 virtual bool handleInputEvent(const WebInputEvent&); 155 157 virtual bool hasTouchEventHandlersAt(const WebPoint&); … … 183 185 virtual void instrumentBeginFrame(); 184 186 virtual void instrumentCancelFrame(); 187 virtual void renderingStats(WebRenderingStats&) const; 185 188 186 189 // WebView methods: … … 841 844 OwnPtr<NonCompositedContentHost> m_nonCompositedContentHost; 842 845 WebLayerTreeView* m_layerTreeView; 846 bool m_ownsLayerTreeView; 843 847 WebLayer* m_rootLayer; 844 848 WebCore::GraphicsLayer* m_rootGraphicsLayer; … … 848 852 // If true, the graphics context is being restored. 849 853 bool m_recreatingGraphicsContext; 854 bool m_compositorSurfaceReady; 850 855 int m_inputHandlerIdentifier; 851 856 #endif -
trunk/Tools/ChangeLog
r140801 r140808 1 2013-01-25 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r140774. 4 http://trac.webkit.org/changeset/140774 5 https://bugs.webkit.org/show_bug.cgi?id=107932 6 7 Tests ScrollingCoordinatorChromiumTest.fastScrollingByDefault 8 and fastScrollingForFixedPosition are failing (Requested by 9 keishi on #webkit). 10 11 * DumpRenderTree/chromium/WebViewHost.cpp: 12 (WebViewHost::initializeLayerTreeView): 13 (WebViewHost::setWebWidget): 14 1 15 2013-01-25 Alan Cutter <alancutter@chromium.org> 2 16 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r140774 r140808 410 410 { 411 411 m_layerTreeView = adoptPtr(Platform::current()->compositorSupport()->createLayerTreeView(client, rootLayer, settings)); 412 if (m_layerTreeView)413 m_layerTreeView->setSurfaceReady();414 412 } 415 413 … … 1123 1121 webView()->setSpellCheckClient(proxy()->spellCheckClient()); 1124 1122 webView()->setPrerendererClient(this); 1123 webView()->setCompositorSurfaceReady(); 1125 1124 } 1126 1125
Note: See TracChangeset
for help on using the changeset viewer.