summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/LayerBuffer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-08-11 22:34:02 -0700
committerMathias Agopian <mathias@google.com>2009-08-11 23:44:13 -0700
commit2ec8458c5fd5b1bfad2d6e16b606f5acbcfa34cc (patch)
tree2b81d3ecbac6fa27ca3c232f695445982d3727f0 /libs/surfaceflinger/LayerBuffer.cpp
parent5cec4742b3a1d7448bd32ae57cb4cf70b484c64c (diff)
downloadframeworks_base-2ec8458c5fd5b1bfad2d6e16b606f5acbcfa34cc.zip
frameworks_base-2ec8458c5fd5b1bfad2d6e16b606f5acbcfa34cc.tar.gz
frameworks_base-2ec8458c5fd5b1bfad2d6e16b606f5acbcfa34cc.tar.bz2
second take, hopefully this time it doesn't break one of the builds: "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.cpp')
-rw-r--r--libs/surfaceflinger/LayerBuffer.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.cpp b/libs/surfaceflinger/LayerBuffer.cpp
index e1f4bea..bd6d472 100644
--- a/libs/surfaceflinger/LayerBuffer.cpp
+++ b/libs/surfaceflinger/LayerBuffer.cpp
@@ -467,7 +467,6 @@ void LayerBuffer::BufferSource::onDraw(const Region& clip) const
mTempBitmap.clear();
mTempBitmap = new android::Buffer(
tmp_w, tmp_h, src.img.format,
- BufferAllocator::USAGE_HW_TEXTURE |
BufferAllocator::USAGE_HW_2D);
err = mTempBitmap->initCheck();
}