[webkit-reviews] review granted: [Bug 60439] [Texmap][Qt] Upstream texture-mapper changes from Qt's WebKit2 branch : [Attachment 92911] Patch: add accelerated animation support to TextureMapper

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 10 02:33:42 PDT 2011


Kenneth Rohde Christiansen <kenneth at webkit.org> has granted Noam Rosenthal
<noam.rosenthal at nokia.com>'s request for review:
Bug 60439: [Texmap][Qt] Upstream texture-mapper changes from Qt's WebKit2
branch
https://bugs.webkit.org/show_bug.cgi?id=60439

Attachment 92911: Patch: add accelerated animation support to TextureMapper
https://bugs.webkit.org/attachment.cgi?id=92911&action=review

------- Additional Comments from Kenneth Rohde Christiansen
<kenneth at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=92911&action=review

> Source/WebCore/platform/graphics/texmap/TextureMapperNode.cpp:674
> +void
TextureMapperNode::syncCompositingStateInternal(GraphicsLayerTextureMapper*
graphicsLayer, bool traverseDescendants, TextureMapper* textureMapper)

wouldn't it makes sense to have the traverseDescentants after the
textureMapper?

> Source/WebCore/platform/graphics/texmap/TextureMapperNode.cpp:682
> +	  
m_state.maskLayer->syncCompositingStateInternal(toGraphicsLayerTextureMapper(gr
aphicsLayer->maskLayer()), false, textureMapper);

I dislike the Internal part... then it is better to find a more proper name

> Source/WebCore/platform/graphics/texmap/TextureMapperNode.cpp:684
> +	   if (m_state.maskLayer->m_size.isEmpty())
> +	       m_state.maskLayer->m_size = m_size;

why only when it is empty? comment?

> Source/WebCore/platform/graphics/texmap/TextureMapperNode.cpp:688
> +	  
m_state.replicaLayer->syncCompositingStateInternal(toGraphicsLayerTextureMapper
(graphicsLayer->replicaLayer()), false, textureMapper);

can the false be replaced by an enum?

> Source/WebCore/platform/graphics/texmap/TextureMapperNode.cpp:692
> +    bool visibleRectDirty = true;

IsDirty

> Source/WebCore/platform/graphics/texmap/TextureMapperNode.cpp:843
> +	   return;

why not just break; ?

> Source/WebCore/platform/graphics/texmap/TextureMapperNode.h:66
> +    static PassRefPtr<TextureMapperAnimation> create(const
KeyframeValueList& values) { return adoptRef(new
TextureMapperAnimation(values)); }

I would put that one at the top.


More information about the webkit-reviews mailing list