summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/LayerBuffer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-06-25 15:39:25 -0700
committerMathias Agopian <mathias@google.com>2009-06-25 15:39:25 -0700
commit240c9fe59e9db5807c88796f60889acc44ba845c (patch)
treecd793b55234d4b87cdc32a7ae52809691579f08a /libs/surfaceflinger/LayerBuffer.cpp
parent2ab55a4e31c37d74abdd85486e1f4045c7f708e2 (diff)
downloadframeworks_native-240c9fe59e9db5807c88796f60889acc44ba845c.zip
frameworks_native-240c9fe59e9db5807c88796f60889acc44ba845c.tar.gz
frameworks_native-240c9fe59e9db5807c88796f60889acc44ba845c.tar.bz2
use copybit for eglSwapBuffers() copy-back operations
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.cpp')
-rw-r--r--libs/surfaceflinger/LayerBuffer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.cpp b/libs/surfaceflinger/LayerBuffer.cpp
index d70a71f..1827efa 100644
--- a/libs/surfaceflinger/LayerBuffer.cpp
+++ b/libs/surfaceflinger/LayerBuffer.cpp
@@ -341,6 +341,9 @@ LayerBuffer::BufferSource::~BufferSource()
if (mTexture.name != -1U) {
glDeleteTextures(1, &mTexture.name);
}
+ if (mBlitEngine) {
+ copybit_close(mBlitEngine);
+ }
}
void LayerBuffer::BufferSource::postBuffer(ssize_t offset)
@@ -485,7 +488,7 @@ void LayerBuffer::BufferSource::onDraw(const Region& clip) const
const Rect& transformedBounds = mLayer.getTransformedBounds();
const copybit_rect_t& drect
- = reinterpret_cast<const copybit_rect_t&>(transformedBounds);
+ = reinterpret_cast<const copybit_rect_t&>(transformedBounds);
const State& s(mLayer.drawingState());
region_iterator it(clip);