Changeset 127994 in webkit
- Timestamp:
- Sep 9, 2012 2:04:02 PM (12 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r127960 r127994 1 2012-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 1 14 2012-09-07 Benjamin Poulain <benjamin@webkit.org> 2 15 -
trunk/Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp
r127896 r127994 69 69 m_graphicsLayer = static_pointer_cast<GraphicsLayerChromium>(GraphicsLayer::create(&m_client)); 70 70 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())); 72 72 m_layerTreeView->setViewportSize(WebSize(1, 1), WebSize(1, 1)); 73 73 } … … 99 99 ASSERT_FALSE(m_platformLayer->hasActiveAnimation()); 100 100 101 OwnPtr<WebFloatAnimationCurve> curve = adoptPtr( WebFloatAnimationCurve::create());101 OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(Platform::current()->compositorSupport()->createFloatAnimationCurve()); 102 102 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))); 104 104 int animationId = floatAnimation->id(); 105 105 ASSERT_TRUE(m_platformLayer->addAnimation(floatAnimation.get()));
Note: See TracChangeset
for help on using the changeset viewer.