Changeset 140774 in webkit


Ignore:
Timestamp:
Jan 24, 2013 8:57:00 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Remove dead transitional code from WebViewImpl
https://bugs.webkit.org/show_bug.cgi?id=107889

Patch by James Robinson <jamesr@chromium.org> on 2013-01-24
Reviewed by Adrienne Walker.

Source/WebKit/chromium:

The chromium side of this landed at r178256 and seems stable.

  • public/WebWidget.h:

(WebKit::WebWidget::setCompositorSurfaceReady):

  • src/WebViewImpl.cpp:

(WebKit::WebViewImpl::WebViewImpl):
(WebKit::WebViewImpl::~WebViewImpl):
(WebKit):
(WebKit::WebViewImpl::setIsTransparent):
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):

  • src/WebViewImpl.h:

Tools:

  • DumpRenderTree/chromium/WebViewHost.cpp:

(WebViewHost::initializeLayerTreeView):
(WebViewHost::setWebWidget):

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r140716 r140774  
     12013-01-24  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Remove dead transitional code from WebViewImpl
     4        https://bugs.webkit.org/show_bug.cgi?id=107889
     5
     6        Reviewed by Adrienne Walker.
     7
     8        The chromium side of this landed at r178256 and seems stable.
     9
     10        * public/WebWidget.h:
     11        (WebKit::WebWidget::setCompositorSurfaceReady):
     12        * src/WebViewImpl.cpp:
     13        (WebKit::WebViewImpl::WebViewImpl):
     14        (WebKit::WebViewImpl::~WebViewImpl):
     15        (WebKit):
     16        (WebKit::WebViewImpl::setIsTransparent):
     17        (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
     18        * src/WebViewImpl.h:
     19
    1202013-01-24  James Robinson  <jamesr@chromium.org>
    221
  • trunk/Source/WebKit/chromium/public/WebWidget.h

    r140621 r140774  
    130130    // Indicates that the compositing surface associated with this WebWidget is
    131131    // ready to use.
    132     virtual void setCompositorSurfaceReady() = 0;
     132    virtual void setCompositorSurfaceReady() { }
    133133
    134134    // Temporary method for the embedder to notify the WebWidget that the widget
     
    136136    // removed when the WebWidget inversion patch lands --- http://crbug.com/112837
    137137    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; }
    147138
    148139    // Called to inform the WebWidget of a change in theme.
     
    248239    virtual void instrumentCancelFrame() { }
    249240
    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 
    255241    // The page background color. Can be used for filling in areas without
    256242    // content.
  • trunk/Source/WebKit/chromium/src/WebViewImpl.cpp

    r140716 r140774  
    419419#if USE(ACCELERATED_COMPOSITING)
    420420    , m_layerTreeView(0)
    421     , m_ownsLayerTreeView(false)
    422421    , m_rootLayer(0)
    423422    , m_rootGraphicsLayer(0)
     
    426425    , m_compositorCreationFailed(false)
    427426    , m_recreatingGraphicsContext(false)
    428     , m_compositorSurfaceReady(false)
    429427    , m_inputHandlerIdentifier(-1)
    430428#endif
     
    512510WebViewImpl::~WebViewImpl()
    513511{
    514     if (m_ownsLayerTreeView)
    515         delete m_layerTreeView;
    516512    ASSERT(!m_page);
    517513}
     
    837833    m_gestureAnimation = WebActiveGestureAnimation::createWithTimeOffset(curve.release(), this, parameters.startTime);
    838834    scheduleAnimation();
    839 }
    840 
    841 void WebViewImpl::renderingStats(WebRenderingStats& stats) const
    842 {
    843     if (m_layerTreeView)
    844         m_layerTreeView->renderingStats(stats);
    845835}
    846836
     
    17661756#endif
    17671757
    1768 void WebViewImpl::setCompositorSurfaceReady()
    1769 {
    1770     m_compositorSurfaceReady = true;
    1771     if (m_layerTreeView)
    1772         m_layerTreeView->setSurfaceReady();
    1773 }
    1774 
    17751758void WebViewImpl::animate(double)
    17761759{
     
    19501933        m_layerTreeView->setNeedsRedraw();
    19511934#endif
    1952 }
    1953 
    1954 bool WebViewImpl::isInputThrottled() const
    1955 {
    1956 #if USE(ACCELERATED_COMPOSITING)
    1957     if (m_layerTreeView && isAcceleratedCompositingActive())
    1958         return m_layerTreeView->commitRequested();
    1959 #endif
    1960     return false;
    19611935}
    19621936
     
    35973571    if (m_nonCompositedContentHost)
    35983572        m_nonCompositedContentHost->setOpaque(!isTransparent);
    3599 
    3600     if (m_layerTreeView)
    3601         m_layerTreeView->setHasTransparentBackground(isTransparent);
    36023573}
    36033574
     
    40834054        m_client->initializeLayerTreeView(this, *m_rootLayer, layerTreeViewSettings);
    40844055        m_layerTreeView = m_client->layerTreeView();
    4085         if (!m_layerTreeView) {
    4086             m_layerTreeView = Platform::current()->compositorSupport()->createLayerTreeView(this, *m_rootLayer, layerTreeViewSettings);
    4087             m_ownsLayerTreeView = true;
    4088         }
    40894056        if (m_layerTreeView) {
    40904057            if (m_webSettings->applyDeviceScaleFactorInCompositor() && page()->deviceScaleFactor() != 1)
     
    40944061            m_layerTreeView->setVisible(visible);
    40954062            m_layerTreeView->setPageScaleFactorAndLimits(pageScaleFactor(), m_minimumPageScaleFactor, m_maximumPageScaleFactor);
    4096             if (m_compositorSurfaceReady)
    4097                 m_layerTreeView->setSurfaceReady();
    40984063            m_layerTreeView->setHasTransparentBackground(isTransparent());
    40994064            updateLayerTreeViewport();
  • trunk/Source/WebKit/chromium/src/WebViewImpl.h

    r140286 r140774  
    144144    virtual void willExitFullScreen();
    145145    virtual void didExitFullScreen();
    146     virtual void setCompositorSurfaceReady();
    147146    virtual void animate(double);
    148147    virtual void layout(); // Also implements WebLayerTreeViewClient::layout()
     
    153152    virtual void composite(bool finish);
    154153    virtual void setNeedsRedraw();
    155     virtual bool isInputThrottled() const;
    156154    virtual bool handleInputEvent(const WebInputEvent&);
    157155    virtual bool hasTouchEventHandlersAt(const WebPoint&);
     
    185183    virtual void instrumentBeginFrame();
    186184    virtual void instrumentCancelFrame();
    187     virtual void renderingStats(WebRenderingStats&) const;
    188185
    189186    // WebView methods:
     
    843840    OwnPtr<NonCompositedContentHost> m_nonCompositedContentHost;
    844841    WebLayerTreeView* m_layerTreeView;
    845     bool m_ownsLayerTreeView;
    846842    WebLayer* m_rootLayer;
    847843    WebCore::GraphicsLayer* m_rootGraphicsLayer;
     
    851847    // If true, the graphics context is being restored.
    852848    bool m_recreatingGraphicsContext;
    853     bool m_compositorSurfaceReady;
    854849    int m_inputHandlerIdentifier;
    855850#endif
  • trunk/Tools/ChangeLog

    r140735 r140774  
     12013-01-24  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Remove dead transitional code from WebViewImpl
     4        https://bugs.webkit.org/show_bug.cgi?id=107889
     5
     6        Reviewed by Adrienne Walker.
     7
     8        * DumpRenderTree/chromium/WebViewHost.cpp:
     9        (WebViewHost::initializeLayerTreeView):
     10        (WebViewHost::setWebWidget):
     11
    1122013-01-24  Joshua Bell  <jsbell@chromium.org>
    213
  • trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp

    r140717 r140774  
    410410{
    411411    m_layerTreeView = adoptPtr(Platform::current()->compositorSupport()->createLayerTreeView(client, rootLayer, settings));
     412    if (m_layerTreeView)
     413        m_layerTreeView->setSurfaceReady();
    412414}
    413415
     
    11211123    webView()->setSpellCheckClient(proxy()->spellCheckClient());
    11221124    webView()->setPrerendererClient(this);
    1123     webView()->setCompositorSurfaceReady();
    11241125}
    11251126
Note: See TracChangeset for help on using the changeset viewer.