diff options
author | Mathias Agopian <mathias@google.com> | 2010-05-21 13:53:28 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-05-21 13:53:28 -0700 |
commit | 3e23593d2f93e4449e22fdc0c9614cd119929084 (patch) | |
tree | 4a3e6e847513ad28bedd8de68da4ef2bd6ebf5ff /libs/surfaceflinger/TextureManager.h | |
parent | 1bb6a711788ecec42bd426b98fbd0e2e957122f2 (diff) | |
parent | bb641244d7d73312dc65b8e338df18b22e335107 (diff) | |
download | frameworks_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.h | 19 |
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); }; |