how does skia OpenGL backend works?

by mailandroid » Wed, 29 Apr 2009 04:27:19 GMT


Sponsored Links
 Hi,

Could anyone explain me how skia OpenGL backend works?

SkCanvas is the drawing context for Skia. How and When SkGLCanvas gets
invoked? On what parameter drawing gets diverted to OpenGL form? Does
application has to set some parameter?

thanks and regards
--~--~---------~--~----~------------~-------~--~----~



how does skia OpenGL backend works?

by Romain Guy » Wed, 29 Apr 2009 04:28:57 GMT


 The OpenGL backend for Skia is not supported and not enabled.






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


how does skia OpenGL backend works?

by mailandroid » Wed, 29 Apr 2009 04:35:03 GMT


 Thanks for immediate response. any idea when this will be done? Can we
expect the support in Donut releases?




--~--~---------~--~----~------------~-------~--~----~



how does skia OpenGL backend works?

by Romain Guy » Wed, 29 Apr 2009 06:29:27 GMT


 No ETA and definitely not for Donut.








-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~



how does skia OpenGL backend works?

by mailandroid » Thu, 30 Apr 2009 06:51:27 GMT


 Can someone explain me how  worst_case_edge_count() is caluclated in
SkGL.cpp? Not able to get enough clarity on adding edgecount for
kQuad_Verb(added 8) and kCubic_Verb(added 16).

thanks and regards





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. problem loading libraries

the open gl application shows error in logcat that not able to connect
to GLS.
the application do not show any o/p except textview.

--~--~---------~--~----~------------~-------~--~----~

2. problem animating a view object

Attempting a fairly simple animation of a View.  I'm trying to display
a panel, and then just animate it if the user touches the screen.

Code for my simplified test is below.

The function animateMe() definitely gets called, but nothing happens.

Any help greatly appreciated, thanks.


MAIN FILE:

public class MovePanelsPCT2 extends Activity {
/** Called when the activity is first created. */
@Override
  public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     // setContentView(R.layout.main);
     setContentView(new DrawView(this));
  }
}




DRAW VIEW CLASS:

public class DrawView extends View {
private Panel myPanel;
Point point0 = new Point();

public DrawView(Context context) {
     super(context);
     setFocusable(true); //necessary for getting the touch events
     point0.x = 20;
     point0.y = 0;
     myPanel = new Panel(context,R.drawable.green_panel, point0);
}

@Override
protected void onDraw(Canvas canvas) {
     canvas.drawBitmap(myPanel.getBitmap(), myPanel.getX(),
myPanel.getY() , null);
}

public boolean onTouchEvent(MotionEvent event) {
     myPanel.animateMe();
     invalidate();
     return true;
}
}


PANEL CLASS:

public class Panel extends View {
private Bitmap img; // the image of the panel
private int coordX = 0; // the x coordinate at the canvas
private int coordY = 0; // the y coordinate at the canvas
private RotateAnimation anim2 = null;

public Panel(Context context, int drawable, Point point) {
     super(context);
     BitmapFactory.Options opts = new BitmapFactory.Options();
     opts.inJustDecodeBounds = true;
     img = BitmapFactory.decodeResource(context.getResources(),
drawable);
     coordX = point.x;
     coordY = point.y;
}

public void animateMe (){
     anim2=new RotateAnimation(0.0f, 90.0f);
     anim2.setDuration(1000);
     anim2.setInterpolator(new AccelerateInterpolator(1.0f));
     startAnimation(anim2);

}

public int getX() {
    return coordX;
}

public int getY() {
     return coordY;
}
public Bitmap getBitmap() {
     return img;
}
}
--~--~---------~--~----~------------~-------~--~----~

3. GLES applications sometimes crashes "(SIGSEGV), fault addr 00000150" after turning screen off/on

4. Ressource Management / Priorization of applications?

5. Load of applications in RAM

6. Resizing dialog window does not work

7. Intent.ACTION_SEND problems with platform\emulator 1.1