summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/ShaderProgram.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/android/ShaderProgram.h')
-rw-r--r--WebCore/platform/graphics/android/ShaderProgram.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/ShaderProgram.h b/WebCore/platform/graphics/android/ShaderProgram.h
index 5e2045c..9419511 100644
--- a/WebCore/platform/graphics/android/ShaderProgram.h
+++ b/WebCore/platform/graphics/android/ShaderProgram.h
@@ -40,7 +40,8 @@ class ShaderProgram {
void setViewport(SkRect& viewport);
void drawQuad(SkRect& geometry, int textureId, float opacity);
void drawLayerQuad(const TransformationMatrix& drawMatrix,
- SkRect& geometry, int textureId, float opacity);
+ SkRect& geometry, int textureId, float opacity,
+ bool forceBlending = false);
void drawVideoLayerQuad(const TransformationMatrix& drawMatrix,
float* textureMatrix, SkRect& geometry, int textureId);
void setViewRect(const IntRect& viewRect);
@@ -49,11 +50,17 @@ class ShaderProgram {
void clip(const FloatRect& rect);
IntRect clippedRectWithViewport(const IntRect& rect, int margin = 0);
+ void resetBlending();
+
private:
GLuint loadShader(GLenum shaderType, const char* pSource);
GLuint createProgram(const char* vertexSource, const char* fragmentSource);
void setProjectionMatrix(SkRect& geometry);
+ void setBlendingState(bool enableBlending);
+
+ bool m_blendingEnabled;
+
int m_program;
int m_videoProgram;