am c936c5ce: Merge "Initialize the SurfaceTexture buffer slots." into honeycomb
* commit 'c936c5cec648cd60637275fc6dba2265ae446044': Initialize the SurfaceTexture buffer slots.
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