Title: [127994] trunk/Source/WebKit/chromium
- Revision
- 127994
- Author
- jam...@google.com
- Date
- 2012-09-09 14:04:02 -0700 (Sun, 09 Sep 2012)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebKit/chromium/ChangeLog (127993 => 127994)
--- trunk/Source/WebKit/chromium/ChangeLog 2012-09-09 21:02:14 UTC (rev 127993)
+++ trunk/Source/WebKit/chromium/ChangeLog 2012-09-09 21:04:02 UTC (rev 127994)
@@ -1,3 +1,16 @@
+2012-09-09 James Robinson <jam...@chromium.org>
+
+ [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):
+
2012-09-07 Benjamin Poulain <benja...@webkit.org>
Unreviewed prospective build fix.
Modified: trunk/Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp (127993 => 127994)
--- trunk/Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp 2012-09-09 21:02:14 UTC (rev 127993)
+++ trunk/Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp 2012-09-09 21:04:02 UTC (rev 127994)
@@ -68,7 +68,7 @@
Platform::current()->compositorSupport()->initialize(0);
m_graphicsLayer = static_pointer_cast<GraphicsLayerChromium>(GraphicsLayer::create(&m_client));
m_platformLayer = m_graphicsLayer->platformLayer();
- m_layerTreeView = adoptPtr(WebLayerTreeView::create(&m_layerTreeViewClient, *m_platformLayer, WebLayerTreeView::Settings()));
+ m_layerTreeView = adoptPtr(Platform::current()->compositorSupport()->createLayerTreeView(&m_layerTreeViewClient, *m_platformLayer, WebLayerTreeView::Settings()));
m_layerTreeView->setViewportSize(WebSize(1, 1), WebSize(1, 1));
}
@@ -98,9 +98,9 @@
{
ASSERT_FALSE(m_platformLayer->hasActiveAnimation());
- OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(WebFloatAnimationCurve::create());
+ OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(Platform::current()->compositorSupport()->createFloatAnimationCurve());
curve->add(WebFloatKeyframe(0.0, 0.0));
- OwnPtr<WebAnimation> floatAnimation(adoptPtr(WebAnimation::create(*curve, WebAnimation::TargetPropertyOpacity)));
+ OwnPtr<WebAnimation> floatAnimation(adoptPtr(Platform::current()->compositorSupport()->createAnimation(*curve, WebAnimation::TargetPropertyOpacity)));
int animationId = floatAnimation->id();
ASSERT_TRUE(m_platformLayer->addAnimation(floatAnimation.get()));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes