summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/RenderEngine/GLES20RenderEngine.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/surfaceflinger/RenderEngine/GLES20RenderEngine.h')
-rw-r--r--services/surfaceflinger/RenderEngine/GLES20RenderEngine.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/surfaceflinger/RenderEngine/GLES20RenderEngine.h b/services/surfaceflinger/RenderEngine/GLES20RenderEngine.h
index 6074a3d..414a999 100644
--- a/services/surfaceflinger/RenderEngine/GLES20RenderEngine.h
+++ b/services/surfaceflinger/RenderEngine/GLES20RenderEngine.h
@@ -42,6 +42,9 @@ class GLES20RenderEngine : public RenderEngine {
GLint mMaxTextureSize;
GLuint mVpWidth;
GLuint mVpHeight;
+ Rect mProjectionSourceCrop;
+ bool mProjectionYSwap;
+ Transform::orientation_flags mProjectionRotation;
struct Group {
GLuint texture;
@@ -76,11 +79,18 @@ protected:
virtual mat4 setupColorTransform(const mat4& colorTransform);
virtual void disableTexturing();
virtual void disableBlending();
+ virtual void setupLayerMasking(const Texture& maskTexture, float alphaThreshold);
+ virtual void disableLayerMasking();
virtual void drawMesh(const Mesh& mesh);
virtual size_t getMaxTextureSize() const;
virtual size_t getMaxViewportDims() const;
+ virtual bool getProjectionYSwap() { return mProjectionYSwap; }
+ virtual size_t getViewportWidth() const { return mVpWidth; }
+ virtual size_t getViewportHeight() const { return mVpHeight; }
+ virtual Rect getProjectionSourceCrop() const { return mProjectionSourceCrop; }
+ virtual Transform::orientation_flags getProjectionRotation() const { return mProjectionRotation; }
};
// ---------------------------------------------------------------------------