summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Caches.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/Caches.h')
-rw-r--r--libs/hwui/Caches.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/hwui/Caches.h b/libs/hwui/Caches.h
index edf3a47..d264971 100644
--- a/libs/hwui/Caches.h
+++ b/libs/hwui/Caches.h
@@ -188,6 +188,11 @@ public:
void activeTexture(GLuint textureUnit);
/**
+ * Sets the scissor for the current surface.
+ */
+ void setScissor(GLint x, GLint y, GLint width, GLint height);
+
+ /**
* Returns the mesh used to draw regions. Calling this method will
* bind a VBO of type GL_ELEMENT_ARRAY_BUFFER that contains the
* indices for the region mesh.
@@ -240,6 +245,11 @@ private:
GLuint mTextureUnit;
+ GLint mScissorX;
+ GLint mScissorY;
+ GLint mScissorWidth;
+ GLint mScissorHeight;
+
// Used to render layers
TextureVertex* mRegionMesh;
GLuint mRegionMeshIndices;