Hi Mathias,
I'm trying to play a little with the Native side of Surface Flinger - in
particular relating to exercising and testing our GL. For convenience then
I want to create a Native (C) application that creates a window suitable
for rendering to GL in a window.
I've played around a little bit with something like:
sp<SurfaceComposerClient> sComposor = new SurfaceComposer();
sp<Surface> s = sComposor->createSurface(getpid(), 0, 100, 100,
PIXEL_FORMAT_RGB_565, 0);
...
EGLSurface esurf = eglCreateWindowSurface(mDisplay, mConfig, new
EGLNativeWindowSurface(s), NULL);
.. At which point I get a fault ("Attempt to read object from parcel ...
that is not in the object list")
(and it compiled so beautifully).
Any Ideas what's (not) going on or alternatively can you point me at a test
program that does this kind of thing (and works) - or some documentation
that gives an overview of using surfaceflinger?
Many Thanks,
Phil.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [EMAIL PROTECTED]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---