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/LayerDim.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/LayerDim.cpp')
| -rw-r--r-- | libs/surfaceflinger/LayerDim.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libs/surfaceflinger/LayerDim.cpp b/libs/surfaceflinger/LayerDim.cpp index 6ebb49f64ca2..8e9df9cc9bcc 100644 --- a/libs/surfaceflinger/LayerDim.cpp +++ b/libs/surfaceflinger/LayerDim.cpp @@ -21,7 +21,6 @@ #include <utils/Errors.h> #include <utils/Log.h> -#include "BufferAllocator.h" #include "LayerDim.h" #include "SurfaceFlinger.h" #include "DisplayHardware/DisplayHardware.h" @@ -69,11 +68,7 @@ void LayerDim::initDimmer(SurfaceFlinger* flinger, uint32_t w, uint32_t h) if (LIKELY(flags & DisplayHardware::DIRECT_TEXTURE)) { // TODO: api to pass the usage flags - sp<Buffer> buffer = new Buffer(w, h, PIXEL_FORMAT_RGB_565, - BufferAllocator::USAGE_SW_WRITE_OFTEN | - BufferAllocator::USAGE_HW_TEXTURE | - BufferAllocator::USAGE_HW_2D); - + sp<Buffer> buffer = new Buffer(w, h, PIXEL_FORMAT_RGB_565); android_native_buffer_t* clientBuf = buffer->getNativeBuffer(); glGenTextures(1, &sTexId); |