summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/LayerBuffer.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-05-10 20:06:11 -0700
committerMathias Agopian <mathias@google.com>2010-05-12 17:26:22 -0700
commitd606de6bb6877dc4ab93ec0be0c6bda4a8ee1ce8 (patch)
treef1bf524f7a846cdb70327c8a24f30d486eb4c672 /libs/surfaceflinger/LayerBuffer.h
parent89141f949270100d1cacecf99cc2ff25fce79087 (diff)
downloadframeworks_native-d606de6bb6877dc4ab93ec0be0c6bda4a8ee1ce8.zip
frameworks_native-d606de6bb6877dc4ab93ec0be0c6bda4a8ee1ce8.tar.gz
frameworks_native-d606de6bb6877dc4ab93ec0be0c6bda4a8ee1ce8.tar.bz2
Refactor some code in surfaceflinger in preparation of upcoming changes
the new TextureMagager class now handle texture creation and upload as well as EGL image creation and binding to GraphicBuffers. This is used indirectly by Layer and directly by LayerBuffer the new BufferManager class handles the set of buffers used for a Layer (Surface), it abstracts how many buffer there is as well as the use of EGLimage vs. regular texture ops (glTexImage2D). Change-Id: I2da1ddcf27758e6731400f6cc4e20bef35c0a39a
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.h')
-rw-r--r--libs/surfaceflinger/LayerBuffer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.h b/libs/surfaceflinger/LayerBuffer.h
index 243cc43..869c74f 100644
--- a/libs/surfaceflinger/LayerBuffer.h
+++ b/libs/surfaceflinger/LayerBuffer.h
@@ -21,6 +21,7 @@
#include <sys/types.h>
#include "LayerBase.h"
+#include "TextureManager.h"
struct copybit_device_t;
@@ -139,9 +140,9 @@ private:
status_t mStatus;
ISurface::BufferHeap mBufferHeap;
size_t mBufferSize;
- mutable LayerBase::Texture mTexture;
+ mutable Texture mTexture;
mutable NativeBuffer mTempBuffer;
- mutable bool mUseEGLImageDirectly;
+ mutable TextureManager mTextureManager;
};
class OverlaySource : public Source {