diff options
| author | Romain Guy <romainguy@google.com> | 2011-04-28 18:47:01 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-04-28 18:47:01 -0700 |
| commit | ad44445c772efe66fdf063aa8f78d7ae3233570e (patch) | |
| tree | 8097234b893dbc0dfe050a0a98e7acecce74b28b /libs/hwui/OpenGLRenderer.h | |
| parent | efe2a0e6ac8183c98dfe969928509e3b32903b40 (diff) | |
| parent | aa6c24c21c727a196451332448d4e3b11a80be69 (diff) | |
| download | frameworks_base-ad44445c772efe66fdf063aa8f78d7ae3233570e.zip frameworks_base-ad44445c772efe66fdf063aa8f78d7ae3233570e.tar.gz frameworks_base-ad44445c772efe66fdf063aa8f78d7ae3233570e.tar.bz2 | |
Merge "New widget: TextureView Bug #4343984"
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 918e1fb..0ffd70b 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -248,6 +248,8 @@ private: */ void composeLayerRect(Layer* layer, const Rect& rect, bool swap = false); + void drawTextureLayer(Layer* layer, const Rect& rect); + /** * Mark the layer as dirty at the specified coordinates. The coordinates * are transformed with the supplied matrix. @@ -387,6 +389,14 @@ private: } /** + * Binds the specified EGLImage texture. The texture unit must have been selected + * prior to calling this method. + */ + inline void bindExternalTexture(GLuint texture) { + glBindTexture(GL_TEXTURE_EXTERNAL_OES, texture); + } + + /** * Sets the wrap modes for the specified texture. The wrap modes are modified * only when needed. */ @@ -425,6 +435,7 @@ private: * Various methods to setup OpenGL rendering. */ void setupDrawWithTexture(bool isAlpha8 = false); + void setupDrawWithExternalTexture(); void setupDrawAALine(); void setupDrawPoint(float pointSize); void setupDrawColor(int color); @@ -453,6 +464,8 @@ private: void setupDrawColorFilterUniforms(); void setupDrawSimpleMesh(); void setupDrawTexture(GLuint texture); + void setupDrawExternalTexture(GLuint texture); + void setupDrawTextureTransform(mat4& transform); void setupDrawMesh(GLvoid* vertices, GLvoid* texCoords = NULL, GLuint vbo = 0); void setupDrawVertices(GLvoid* vertices); void setupDrawAALine(GLvoid* vertices, GLvoid* distanceCoords, float strokeWidth); |
