summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-06-07 15:35:48 -0700
committerMathias Agopian <mathias@google.com>2013-07-03 14:39:27 -0700
commit875d8e1323536e16dcfc90c9674d7ad32116a69a (patch)
tree7e3c584f2791aeca5abe25ba036c7d628948a9ab /services/surfaceflinger/Layer.h
parent9c3e2dd97e100a3effe617cacb00cf163577ba13 (diff)
downloadframeworks_native-875d8e1323536e16dcfc90c9674d7ad32116a69a.zip
frameworks_native-875d8e1323536e16dcfc90c9674d7ad32116a69a.tar.gz
frameworks_native-875d8e1323536e16dcfc90c9674d7ad32116a69a.tar.bz2
Refactor SF. Move all GL operations in their own class.
this is the first step to add support for GLES 2.x, this change breaks the dependency of SF on GLES 1.x by moving all operation into their own class. Bug: 8679321 Change-Id: I0d2741eca2cefe67dfd9cf837cac10c4d126928b
Diffstat (limited to 'services/surfaceflinger/Layer.h')
-rw-r--r--services/surfaceflinger/Layer.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index f79bf2d..e7e9585 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -22,8 +22,6 @@
#include <EGL/egl.h>
#include <EGL/eglext.h>
-#include <GLES/gl.h>
-#include <GLES/glext.h>
#include <utils/RefBase.h>
#include <utils/String8.h>
@@ -55,7 +53,6 @@ class Colorizer;
class DisplayDevice;
class GraphicBuffer;
class SurfaceFlinger;
-class GLExtensions;
// ---------------------------------------------------------------------------
@@ -113,14 +110,15 @@ public:
class LayerMesh {
friend class Layer;
- GLfloat mVertices[4][2];
+ typedef GLfloat float2[2];
+ float2 mVertices[4];
size_t mNumVertices;
public:
LayerMesh() :
mNumVertices(4) {
}
- GLfloat const* getVertices() const {
- return &mVertices[0][0];
+ float2 const* getVertices() const {
+ return mVertices;
}
size_t getVertexCount() const {
return mNumVertices;
@@ -355,7 +353,6 @@ private:
String8 mName;
mutable bool mDebug;
PixelFormat mFormat;
- const GLExtensions& mGLExtensions;
bool mOpaqueLayer;
// these are protected by an external lock