DescriptionAllow cmdbuffer creation from compositor thread.
This adds a message filter on the IO thread which routes messages to
the corresponding cmdbuffer proxy on the correct thread (main or compositor).
The proxies become reference counted so that the filter can track them.
When a context gets deleted, a flag gets set on the context to indicate
they have become orphaned so we do not handle any incoming messages anymore
(the callbacks etc. have become invalid when the context goes away).
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97824
Patch Set 1 #Patch Set 2 : io msg loop -> proxy #Patch Set 3 : use mutex for calls in GpuChannelHost coming from both threads instead #Patch Set 4 : fix style/build and rebase #Patch Set 5 : MessageLoop::current() -> MessageLoopProxy::current() #
Total comments: 2
Patch Set 6 : address comments #
Total comments: 2
Patch Set 7 : address comment #Patch Set 8 : fix crash after channel reset (if-condition in Send()) and use refcounted ptr for sync_filter_ #Patch Set 9 : rebase #Patch Set 10 : weak ptr version #
Total comments: 4
Patch Set 11 : nest class #
Messages
Total messages: 13 (0 generated)
|