summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/TextureManager.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-05-21 13:53:28 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-05-21 13:53:28 -0700
commit3e23593d2f93e4449e22fdc0c9614cd119929084 (patch)
tree4a3e6e847513ad28bedd8de68da4ef2bd6ebf5ff /libs/surfaceflinger/TextureManager.h
parent1bb6a711788ecec42bd426b98fbd0e2e957122f2 (diff)
parentbb641244d7d73312dc65b8e338df18b22e335107 (diff)
downloadframeworks_native-3e23593d2f93e4449e22fdc0c9614cd119929084.zip
frameworks_native-3e23593d2f93e4449e22fdc0c9614cd119929084.tar.gz
frameworks_native-3e23593d2f93e4449e22fdc0c9614cd119929084.tar.bz2
Merge "fix the threading issue for setBuffercount()" into kraken
Diffstat (limited to 'libs/surfaceflinger/TextureManager.h')
-rw-r--r--libs/surfaceflinger/TextureManager.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/libs/surfaceflinger/TextureManager.h b/libs/surfaceflinger/TextureManager.h
index 90cb62b..d0acfe9 100644
--- a/libs/surfaceflinger/TextureManager.h
+++ b/libs/surfaceflinger/TextureManager.h
@@ -36,21 +36,24 @@ class GraphicBuffer;
// ---------------------------------------------------------------------------
-struct Texture {
- Texture() : name(-1U), width(0), height(0),
- image(EGL_NO_IMAGE_KHR), transform(0),
- NPOTAdjust(false), dirty(true) { }
+struct Image {
+ Image() : name(-1U), image(EGL_NO_IMAGE_KHR), width(0), height(0),
+ transform(0), dirty(true) { }
GLuint name;
+ EGLImageKHR image;
GLuint width;
GLuint height;
+ uint32_t transform;
+ bool dirty;
+};
+
+struct Texture : public Image {
+ Texture() : Image(), NPOTAdjust(false) { }
GLuint potWidth;
GLuint potHeight;
GLfloat wScale;
GLfloat hScale;
- EGLImageKHR image;
- uint32_t transform;
bool NPOTAdjust;
- bool dirty;
};
// ---------------------------------------------------------------------------
@@ -68,7 +71,7 @@ public:
const Region& dirty, const GGLSurface& t);
// make active buffer an EGLImage if needed
- status_t initEglImage(Texture* texture,
+ status_t initEglImage(Image* texture,
EGLDisplay dpy, const sp<GraphicBuffer>& buffer);
};