我对 Bitmap.createBitmap() 的调用总是会导致 gc_for_alloc。这是代码:
if (theFinger.isTheSaveFlag())
{
theBackGroundBuffer.position(0);
gl.glReadPixels(0, 0, theBackGroundWidth, theBackGroundHeight, GL10.GL_RGBA, GL10.GL_UNSIGNED_BYTE, theBackGroundBuffer);
theBackGroundBuffer.position(0);
theBackGroundBuffer.get(theBackGroundPixel);
theBackGroundTexture.dispose();
theBackGround.recycle();
theBackGround = Bitmap.createBitmap(theBackGroundPixel, theBackGroundWidth, theBackGroundHeight, Bitmap.Config.ARGB_8888);
theBackGroundTexture.load(theBackGround);
}
有人能告诉我为什么吗?