#include <gtest/gtest.h>
-using namespace WebCore;
using namespace blink;
namespace {
explicit GraphicsLayerForTesting(GraphicsLayerClient* client)
: GraphicsLayer(client) { };
- virtual blink::WebLayer* contentsLayer() const { return GraphicsLayer::contentsLayer(); }
+ virtual WebLayer* contentsLayer() const { return GraphicsLayer::contentsLayer(); }
};
class GraphicsLayerTest : public testing::Test {
m_graphicsLayer->platformLayer()->setScrollClipLayer(
m_clipLayer->platformLayer());
m_platformLayer = m_graphicsLayer->platformLayer();
- m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting(WebUnitTestSupport::TestViewTypeUnitTest));
+ m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting());
ASSERT(m_layerTreeView);
m_layerTreeView->setRootLayer(*m_clipLayer->platformLayer());
m_layerTreeView->registerViewportLayers(
m_clipLayer->platformLayer(), m_graphicsLayer->platformLayer(), 0);
- m_layerTreeView->setViewportSize(WebSize(1, 1), WebSize(1, 1));
+ m_layerTreeView->setViewportSize(WebSize(1, 1));
}
virtual ~GraphicsLayerTest()
OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(Platform::current()->compositorSupport()->createFloatAnimationCurve());
curve->add(WebFloatKeyframe(0.0, 0.0));
- OwnPtr<WebAnimation> floatAnimation(adoptPtr(Platform::current()->compositorSupport()->createAnimation(*curve, WebAnimation::TargetPropertyOpacity)));
+ OwnPtr<WebCompositorAnimation> floatAnimation(adoptPtr(Platform::current()->compositorSupport()->createAnimation(*curve, WebCompositorAnimation::TargetPropertyOpacity)));
int animationId = floatAnimation->id();
ASSERT_TRUE(m_platformLayer->addAnimation(floatAnimation.leakPtr()));