summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Layer.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-05-02 17:24:22 -0700
committerRomain Guy <romainguy@google.com>2011-05-02 18:32:29 -0700
commit8f0095cd33558e9cc8a440047908e53b68906f5f (patch)
tree2f55d779bf102e0c134357d89c7de69d0444634a /libs/hwui/Layer.h
parent3a5c227279011f850036c29e7c0bc96023298d5c (diff)
downloadframeworks_base-8f0095cd33558e9cc8a440047908e53b68906f5f.zip
frameworks_base-8f0095cd33558e9cc8a440047908e53b68906f5f.tar.gz
frameworks_base-8f0095cd33558e9cc8a440047908e53b68906f5f.tar.bz2
Allows to render with an OpenGL context inside a TextureView.
Change-Id: I59453f7fc3997f0502a1c5d325d37fed376fabc7
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r--libs/hwui/Layer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h
index 16566b8..0310bc3 100644
--- a/libs/hwui/Layer.h
+++ b/libs/hwui/Layer.h
@@ -47,6 +47,7 @@ struct Layer {
meshElementCount = 0;
isCacheable = true;
isTextureLayer = false;
+ renderTarget = GL_TEXTURE_2D;
}
~Layer() {
@@ -155,6 +156,11 @@ struct Layer {
* Optional texture coordinates transform.
*/
mat4 texTransform;
+
+ /**
+ * Indicates the render target.
+ */
+ GLenum renderTarget;
}; // struct Layer
}; // namespace uirenderer