W3C home > Mailing lists > Public > public-html-admin@w3.org > November 2013

[Bug 23774] New: Propose to add "imagecanvas" attribute for Canvas Element

From: <bugzilla@jessica.w3.org>
Date: Fri, 08 Nov 2013 09:32:27 +0000
To: public-html-admin@w3.org
Message-ID: <bug-23774-2495@http.www.w3.org/Bugs/Public/>

            Bug ID: 23774
           Summary: Propose to add "imagecanvas" attribute for Canvas
           Product: WHATWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML
          Assignee: ian@hixie.ch
          Reporter: faulkner.steve@gmail.com
        QA Contact: contributor@whatwg.org
                CC: eric.sun@huawei.com, mike@w3.org,
        Depends on: 23773

+++ This bug was initially created as a clone of Bug #23773 +++


   <canvas id="myCanvas" imagecanvas="true”></canvas>
    if imagecanvas is true, canvas only render image, otherwise operate like
normal case.


   During development of browser, we find that,if the browser engine can know
that this canvas is only for drawring image and identify this scenario, then
the browser engine can give GPU accelaration for this only-drawing-image

   If we draw canvas, when drawimage,and there are other non-image drawing,like
text or line, the performance is downgraded.

   After we implement this attribute for canvas element in our android webkit
kernal,we got test data for using this attribute, and not using this
attribute.Below is the performance comparision.We use 5 games to test our
implementation, and find the effect is obvious,please find detailed data below.


   1) for developer, this attribute is easy to use,we can draw different type
draw in different canvas,we can get high performance web page.
   2) for browser engine, it can fully optimize the performance of drawing an
image,make best use of powser of GPU accelerator.

Test Data:

1、    FishIE
number of fish             1    10    20    50    100
before(fps)           46    26    15    12    8
after(fps)            60    58    58    58    50
effect(%)        30.43    123.07    286.66    383.33    525.00

before fps)    32
after (fps)    60
effect(%)    87.50
3、    FishBowl
number of fish          5    10    50
before(fps)            5    4    2
after( fps)            60    60    53
effect(%)        1100.00    1400.00    2500.00
4 CanvasGameTest
before            42
after            121
effect(%)    188.50

5 fishjoy

before      30fps
after      50fps

You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 8 November 2013 09:32:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:35 UTC