DescriptionImplemented AcceleratedSurface for Windows.
It allows a D3D9Ex render target texture to be drawn in one process and presented to a Window in another. Presentation is done by a pool of 4 threads so that multiple (up to 4) windows can be presented at full frame rate.
It also deals with acknowleding when it is safe for the producer to render the next frame.
There are some complications with D3D and threading. Even when a device is created with the MULTITHREAD flag, there are limitations to what can be done. Only the thread that creates the device can reset it or destroy it. Therefore each Accelerated surface keeps track of which thread that is. Any thread can present so a simple round robin scheduler assigns presents to the least recently used thread.
It'll be used by this:
http://codereview.chromium.org/8060045/
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108169
Patch Set 1 #Patch Set 2 : '' #Patch Set 3 : '' #
Total comments: 4
Patch Set 4 : '' #
Messages
Total messages: 16 (0 generated)
|