[Webkit-unassigned] [Bug 70084] Add WebAcceleratedContentLayer backed by a texture to support accelerated content hosting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 14 16:48:13 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70084


James Robinson <jamesr at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #111099|review?                     |review+
               Flag|                            |




--- Comment #10 from James Robinson <jamesr at chromium.org>  2011-10-14 16:48:13 PST ---
(From update of attachment 111099)
View in context: https://bugs.webkit.org/attachment.cgi?id=111099&action=review

I think you should explicitly document how the compositor will use the passed-in texture.  I believe that with our current implementation it would be something like:

In single threaded mode, the texture will only be used during an invocation of WebLayerTreeView::composite()
In multi threaded mode, the texture may be used starting at some undetermined time after the texture ID is set (specifically at the first commit) and then used at arbitrary points in time up until an undetermined time after the texture id or layer is destroyed, or until the WebLayerTreeView is destroyed.

I'm not sure if the second is workable - we might pick up weird intermediate states if the compositor tries to draw from a texture id that is bound to an FBO as a color attachment in another context. So far in the WebCore compositor we've been ignoring this problem as other issues are currently higher priority, but if this is exposed as API that's a little less workable.

R=me on the implementation stuff.

> Source/WebKit/chromium/src/WebExternalTextureLayerImpl.cpp:58
> +void WebExternalTextureLayerImpl::paintContents(GraphicsContext& gc, const IntRect& clip)

nit: webkit style when an implementation doesn't use a parameter is to omit the name of the parameter. this avoids unused variable warnings on some compilers

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list