Proposal: Revive Async Drawing API

Josh Aas josh at mozilla.com
Mon Nov 30 22:38:23 UTC 2015


LGTM, will work with David to get a patch pushed to the npapi-sdk repo.

On Tue, Nov 17, 2015 at 6:32 PM, Robert O'Callahan <robert at ocallahan.org> wrote:
> On Wed, Nov 18, 2015 at 10:30 AM, David Anderson <danderson at mozilla.com>
> wrote:
>>
>> In 2012, an API for hardware-accelerated, windowless drawing was proposed
>> and accepted [1]. Flash used this API in beta but it never went to release,
>> and the API was thus retracted in early 2014.
>>
>> This code was never removed from Flash, and builds from Adobe with it
>> re-enabled still work as intended. This is a huge performance boon to
>> windowless plugins, and it removes one of the remaining use cases for
>> windowed plugins. We would like to move forward with the API again.
>>
>> I have made two changes to the original documentation:
>>  (1) NPN_SetCurrentAsyncSurface() must be called from the main thread,
>> rather than any thread. This simplifies its implementation in browsers, and
>> matches the behavior already implemented in Flash.
>>  (2) A new NPNVariable, NPNVpreferredDXGIAdapter. This allows Flash to
>> negotiate the correct GPU with Firefox, a problem not originally anticipated
>> since dual GPUs were not popular when this API was first made.
>>
>> Proposed SDK changes [2] and sample plugin with both drawing models [3]
>> are available.
>
>
> That sounds very good!
>
> Rob
> --
> lbir ye,ea yer.tnietoehr  rdn rdsme,anea lurpr  edna e hnysnenh hhe uresyf
> toD
> selthor  stor  edna  siewaoeodm  or v sstvr  esBa  kbvted,t
> rdsme,aoreseoouoto
> o l euetiuruewFa  kbn e hnystoivateweh uresyf tulsa rehr  rdm  or rnea lurpr
> .a war hsrer holsa rodvted,t  nenh hneireseoouot.tniesiewaoeivatewt sstvr
> esn
>
> _______________________________________________
> plugin-futures mailing list
> plugin-futures at mozilla.org
> https://mail.mozilla.org/listinfo/plugin-futures
>



-- 
Josh Aas
Senior Technology Strategist
Mozilla Corporation


More information about the plugin-futures mailing list