Title: [88643] trunk/Source/WebCore
- Revision
- 88643
- Author
- noam.rosent...@nokia.com
- Date
- 2011-06-13 09:16:55 -0700 (Mon, 13 Jun 2011)
Log Message
2011-06-13 Noam Rosenthal <noam.rosent...@nokia.com>
Reviewed by Kenneth Rohde Christiansen.
Add layer factory to GraphicsLayer for creating non-default layer type.
https://bugs.webkit.org/show_bug.cgi?id=61925
Use the new factory function in TextureMapper.
No new functionality so no new tests.
* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
(WebCore::GraphicsLayer::create):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (88642 => 88643)
--- trunk/Source/WebCore/ChangeLog 2011-06-13 15:48:20 UTC (rev 88642)
+++ trunk/Source/WebCore/ChangeLog 2011-06-13 16:16:55 UTC (rev 88643)
@@ -1,3 +1,17 @@
+2011-06-13 Noam Rosenthal <noam.rosent...@nokia.com>
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ Add layer factory to GraphicsLayer for creating non-default layer type.
+ https://bugs.webkit.org/show_bug.cgi?id=61925
+
+ Use the new factory function in TextureMapper.
+
+ No new functionality so no new tests.
+
+ * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
+ (WebCore::GraphicsLayer::create):
+
2011-06-13 Young Han Lee <joy...@company100.net>
Reviewed by Kenneth Rohde Christiansen.
Modified: trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp (88642 => 88643)
--- trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp 2011-06-13 15:48:20 UTC (rev 88642)
+++ trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp 2011-06-13 16:16:55 UTC (rev 88643)
@@ -349,11 +349,6 @@
return const_cast<TextureMapperPlatformLayer*>(node()->media());
}
-PassOwnPtr<GraphicsLayer> GraphicsLayer::create(GraphicsLayerClient* client)
-{
- return adoptPtr(new GraphicsLayerTextureMapper(client));
-}
-
bool GraphicsLayerTextureMapper::addAnimation(const KeyframeValueList& valueList, const IntSize& boxSize, const Animation* anim, const String& keyframesName, double timeOffset)
{
ASSERT(!keyframesName.isEmpty());
@@ -421,4 +416,11 @@
client()->notifyAnimationStarted(this, /* DOM time */ WTF::currentTime());
}
+PassOwnPtr<GraphicsLayer> GraphicsLayer::create(GraphicsLayerClient* client)
+{
+ if (s_graphicsLayerFactory)
+ return (*s_graphicsLayerFactory)(client);
+ return adoptPtr(new GraphicsLayerTextureMapper(client));
}
+
+}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes