Merge "Initialize the SurfaceTexture buffer slots." into honeycomb

This commit is contained in:
Jamie Gennis
2011-01-10 12:29:51 -08:00
committed by Android (Google) Code Review

View File

@ -36,6 +36,11 @@ namespace android {
SurfaceTexture::SurfaceTexture(GLuint tex) :
mBufferCount(MIN_BUFFER_SLOTS), mCurrentTexture(INVALID_BUFFER_SLOT),
mLastQueued(INVALID_BUFFER_SLOT), mTexName(tex) {
for (int i = 0; i < NUM_BUFFER_SLOTS; i++) {
mSlots[i].mEglImage = EGL_NO_IMAGE_KHR;
mSlots[i].mEglDisplay = EGL_NO_DISPLAY;
mSlots[i].mOwnedByClient = false;
}
}
SurfaceTexture::~SurfaceTexture() {