diff options
Diffstat (limited to 'WebCore/platform/graphics/android/ShaderProgram.h')
-rw-r--r-- | WebCore/platform/graphics/android/ShaderProgram.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/ShaderProgram.h b/WebCore/platform/graphics/android/ShaderProgram.h index 785b42d..719a9ac 100644 --- a/WebCore/platform/graphics/android/ShaderProgram.h +++ b/WebCore/platform/graphics/android/ShaderProgram.h @@ -19,6 +19,8 @@ #if USE(ACCELERATED_COMPOSITING) +#include "FloatRect.h" +#include "IntRect.h" #include "SkRect.h" #include "TransformationMatrix.h" #include <GLES2/gl2.h> @@ -38,6 +40,8 @@ class ShaderProgram { void drawQuad(SkRect& geometry, int textureId, float opacity); void drawLayerQuad(const TransformationMatrix& drawMatrix, SkRect& geometry, int textureId, float opacity); + void setViewRect(const IntRect& viewRect); + void clip(const TransformationMatrix& drawMatrix, const FloatRect& rect); private: GLuint loadShader(GLenum shaderType, const char* pSource); @@ -49,6 +53,11 @@ class ShaderProgram { TransformationMatrix m_projectionMatrix; GLuint m_textureBuffer[1]; + TransformationMatrix m_clippingMatrix; + SkRect m_viewport; + IntRect m_viewRect; + FloatRect m_clipRect; + // uniforms int m_hProjectionMatrix; int m_hAlpha; |