Our Browser GPU Accelerated?

Adrynalyne

Account Deactivated
Dec 24, 2009
1,346
1,534
0
Visit site
Myself, I've always felt the eb01 and eb16 browsers were very nice, performance wise. Well, upon request, I cracked them open last night and looky what I found (our browser is on the left):



Uploaded with ImageShack.us



If this doesn't convince you, here is a snippet of smali code:

.class Lcom/android/browser/WebGLZoomRenderer;
.super Ljava/lang/Object;
.source "WebGLZoomView.java"

# interfaces
.implements Landroid/opengl/GLSurfaceView$Renderer;

Just something to chew on.
 

gizmodroid

Member
Feb 17, 2011
5
35
0
Visit site
From what I saw, everything in the code was hardware accelerating the zoom function. This is comparable to Gallery3d, which also uses the OpenGL library to handle zooming. So, basically it seems like the GPU acceleration helps out with the user manipulating the page, but not in actually rendering of the content.

When loading the browser, logcat spits out
D/libEGL (20133): loaded /system/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL (20133): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL (20133): loaded /system/lib/egl/libGLESv2_POWERVR_SGX540_120.so
D/GL (20133): onSurfaceCreated
D/GL (20133): surface changed 480 762


The Xperia demoed it's WebGL support in the Android browser recently, so hopefully we will see more goodies in the future.

WebGL support in the Android?„? web browser | Developer World
 

Forum statistics

Threads
944,418
Messages
6,922,733
Members
3,159,545
Latest member
dumbbunny