diff options
| author | 2009-08-11 20:50:32 -0700 | |
|---|---|---|
| committer | 2009-08-11 20:50:32 -0700 | |
| commit | efefd5efb9e20fbcd94c3f4766ca2a64e511da77 (patch) | |
| tree | 64b527b57b6e206497402e053e0b35a869a57915 /libs/surfaceflinger/LayerBuffer.cpp | |
| parent | d7fe92b85812c53079b813543d722922e4ce7a4a (diff) | |
| parent | 64e89a8aff9a45a491f1d7064a655b9021fe644a (diff) | |
Merge change 20892
* changes:
Revert "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.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.cpp b/libs/surfaceflinger/LayerBuffer.cpp index e1f4bea228c5..90e7f5048067 100644 --- a/libs/surfaceflinger/LayerBuffer.cpp +++ b/libs/surfaceflinger/LayerBuffer.cpp @@ -28,7 +28,6 @@ #include <hardware/copybit.h> -#include "BufferAllocator.h" #include "LayerBuffer.h" #include "SurfaceFlinger.h" #include "DisplayHardware/DisplayHardware.h" @@ -465,10 +464,7 @@ void LayerBuffer::BufferSource::onDraw(const Region& clip) const mTempBitmap->getWidth() < tmp_w || mTempBitmap->getHeight() < tmp_h) { mTempBitmap.clear(); - mTempBitmap = new android::Buffer( - tmp_w, tmp_h, src.img.format, - BufferAllocator::USAGE_HW_TEXTURE | - BufferAllocator::USAGE_HW_2D); + mTempBitmap = new android::Buffer(tmp_w, tmp_h, src.img.format); err = mTempBitmap->initCheck(); } |