Merge "Initialize the SurfaceTexture buffer slots." into honeycomb
This commit is contained in:
@ -36,6 +36,11 @@ namespace android {
|
|||||||
SurfaceTexture::SurfaceTexture(GLuint tex) :
|
SurfaceTexture::SurfaceTexture(GLuint tex) :
|
||||||
mBufferCount(MIN_BUFFER_SLOTS), mCurrentTexture(INVALID_BUFFER_SLOT),
|
mBufferCount(MIN_BUFFER_SLOTS), mCurrentTexture(INVALID_BUFFER_SLOT),
|
||||||
mLastQueued(INVALID_BUFFER_SLOT), mTexName(tex) {
|
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() {
|
SurfaceTexture::~SurfaceTexture() {
|
||||||
|
Reference in New Issue
Block a user