diff options
| author | 2009-06-23 18:08:22 -0700 | |
|---|---|---|
| committer | 2009-06-23 18:08:22 -0700 | |
| commit | 1fed11c86a9d59d0f5282ae8ae25ceba2f802fdd (patch) | |
| tree | 940032f8fb572ae8096b79027382ddb0538404fd /libs/surfaceflinger/Layer.cpp | |
| parent | 9f8b0c909760aa5b866255fe08042a3200b736cc (diff) | |
checkpoint. bring back video/camera
Diffstat (limited to 'libs/surfaceflinger/Layer.cpp')
| -rw-r--r-- | libs/surfaceflinger/Layer.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libs/surfaceflinger/Layer.cpp b/libs/surfaceflinger/Layer.cpp index 218cb39f5b..c40fec16fb 100644 --- a/libs/surfaceflinger/Layer.cpp +++ b/libs/surfaceflinger/Layer.cpp @@ -187,7 +187,9 @@ void Layer::reloadTexture(const Region& dirty) mFlags &= ~DisplayHardware::DIRECT_TEXTURE; } else { // Everything went okay! - mTextures[index].dirty = false; + mTextures[index].dirty = false; + mTextures[index].width = clientBuf->width; + mTextures[index].height = clientBuf->height; } } } @@ -200,8 +202,7 @@ void Layer::reloadTexture(const Region& dirty) if (UNLIKELY(mTextures[0].name == -1U)) { mTextures[0].name = createTexture(); } - loadTexture(dirty, mTextures[0].name, t, - mTextures[0].width, mTextures[0].height); + loadTexture(&mTextures[0], mTextures[0].name, dirty, t); buffer->unlock(); } } @@ -222,10 +223,7 @@ void Layer::onDraw(const Region& clip) const clearWithOpenGL(clip); return; } - - GGLSurface t; - sp<const Buffer> buffer(frontBuffer().getBuffer()); - drawWithOpenGL(clip, textureName, buffer); + drawWithOpenGL(clip, mTextures[index]); } sp<SurfaceBuffer> Layer::peekBuffer() |