Hi, I ported ACCELERATED_2D_CANVAS to android in the last year at Dorothy team. ACCELERATED_2D_CANVAS became very different between the last year and upstream. The old ACCELERATED_2D_CANVAS used GraphicsContext3D (for WebGL) made by Kenneth Russell. However, removed the old ACCELERATED_2D_CANVAS at following patch.
> commit 69ce1762db4fccb369ad5f273a227409d37c5445 > > Author: [email protected] <[email protected] >> @268f45cc-cd09-0410-ab3c-d52691b4dbfc> > > Date: Wed Jul 13 00:20:04 2011 +0000 > > Upstream WebKit accelerates 2d canvas using Skia GPU. Only chrome port can enable ACCELERATED_2D_CANVAS. When I ported ACCELERATED_2D_CANVAS, I used TexMap for ACCELERATED_COMPOSITION. However, it is difficult to use skia gpu with TexMap because we can not control eglContext in skia gpu explicitly. Last year, it was easy because GraphicsContext3D in WebKit was used. I think AviD would like to wait chrome android release. Hope that helps, Huang 2012/2/17 Adam Barth <[email protected]> > On Thu, Feb 16, 2012 at 4:25 AM, Avi D <[email protected]> wrote: > > Hi, > > I am fairly new to Webkit. I am currently trying to Enable > > ACCELERATED_2D_CANVAS flag for my build. > > When the Flag was enabled (changed in Platform.h -> #define > > ENABLE_ACCELERATED_2D_CANVAS 1), I got some build errors related to > > GraphicsContext3D. > > On further digging into the information, I found that there was a Webkit > > port which was planned for Android but was later cancelled due to Android > > using the Chromium port. I did not find much information but for a blog > > Doorthy team which claimed to have succesfully enabled Accelerated 2D > > Canvas. > > > > I have 3 questions: > > 1. Is android porting required for resolving this error? (i.e, Enabling > > ACCELERATED_2D_CANVAS) > > 2. Can i use Chromium port for using the ACCELERATED_2D_CANVAS? If yes, > then > > how? > > 3. Is there any other way to get ACCELERATED_2D_CANVAS working for the > > current android webkit? > > > > I am currently working on Webkit version:84325. > > That revision of WebKit is 10 months old. There has been a > substantial amount of work done on ACCELERATED_2D_CANVAS in the last > 10 months. You'll likely need to update your version of WebKit to the > latest revision. > > With regards to your question specifically, the Chromium Android port > does indeed hardware accelerate its <canvas>. We're in the process of > landing the Chromium Android port in trunk, but that process is not > complete yet. You'll likely have better luck getting it all working > once we finish landing the port. > > Hope that helps, > Adam > > > > P.S: I am sorry if the questions sound too dumb. > > Regards > > AviD > > > > _______________________________________________ > > webkit-dev mailing list > > [email protected] > > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > > > _______________________________________________ > webkit-dev mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev >
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

