Changeset 127994 in webkit


Ignore:
Timestamp:
Sep 9, 2012 2:04:02 PM (12 years ago)
Author:
jamesr@google.com
Message:

[chromium] Use WebCompositorSupport creation functions in GraphicsLayerChromiumTest
https://bugs.webkit.org/show_bug.cgi?id=96212

Reviewed by Adrienne Walker.

The static ::create()s the test references currently are going away soon.

  • tests/GraphicsLayerChromiumTest.cpp:

(WebKit::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest):
(WebKit::TEST_F):

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

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

    r127960 r127994  
     12012-09-09  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Use WebCompositorSupport creation functions in GraphicsLayerChromiumTest
     4        https://bugs.webkit.org/show_bug.cgi?id=96212
     5
     6        Reviewed by Adrienne Walker.
     7
     8        The static ::create()s the test references currently are going away soon.
     9
     10        * tests/GraphicsLayerChromiumTest.cpp:
     11        (WebKit::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest):
     12        (WebKit::TEST_F):
     13
    1142012-09-07  Benjamin Poulain  <benjamin@webkit.org>
    215
  • trunk/Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp

    r127896 r127994  
    6969        m_graphicsLayer = static_pointer_cast<GraphicsLayerChromium>(GraphicsLayer::create(&m_client));
    7070        m_platformLayer = m_graphicsLayer->platformLayer();
    71         m_layerTreeView = adoptPtr(WebLayerTreeView::create(&m_layerTreeViewClient, *m_platformLayer, WebLayerTreeView::Settings()));
     71        m_layerTreeView = adoptPtr(Platform::current()->compositorSupport()->createLayerTreeView(&m_layerTreeViewClient, *m_platformLayer, WebLayerTreeView::Settings()));
    7272        m_layerTreeView->setViewportSize(WebSize(1, 1), WebSize(1, 1));
    7373    }
     
    9999    ASSERT_FALSE(m_platformLayer->hasActiveAnimation());
    100100
    101     OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(WebFloatAnimationCurve::create());
     101    OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(Platform::current()->compositorSupport()->createFloatAnimationCurve());
    102102    curve->add(WebFloatKeyframe(0.0, 0.0));
    103     OwnPtr<WebAnimation> floatAnimation(adoptPtr(WebAnimation::create(*curve, WebAnimation::TargetPropertyOpacity)));
     103    OwnPtr<WebAnimation> floatAnimation(adoptPtr(Platform::current()->compositorSupport()->createAnimation(*curve, WebAnimation::TargetPropertyOpacity)));
    104104    int animationId = floatAnimation->id();
    105105    ASSERT_TRUE(m_platformLayer->addAnimation(floatAnimation.get()));
Note: See TracChangeset for help on using the changeset viewer.