Saturday, October 8, 2011

[android-developers] honeycomb HW accelerated 2D bmp.copyPixelsFromBuffer(bf) not reupload texture to GPU

Hi,

I am blitting a byte buffer to an Object Bitmap using a HW accelerated
Canvas. To avoid garbage collector i would like to reuse the bitmap
doing a bmp.copyPixelsFromBuffer(bf).

The problem here is that Android 3.0 canvas HW accelerated seems to
not reupload bitmap texture unless it is a different object...

My workround was to use drawBitmap(int[] colors ... previusly i had
to do a bmp.getPixels( ... this is slow... since involves an RGB565 to
RGB8888 conversion by frame

any ideas why Android 3.0 HW accelerated not reupload bitmap textures
which bytes are internally changed?

is this a bug?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment