Chromium Code Reviews| Index: cc/shader.h |
| diff --git a/cc/shader.h b/cc/shader.h |
| index 2555313d7825f355cecf207696888d82de62588a..c21c356ee33d9677c690ce69d9ee0afc86c686de 100644 |
| --- a/cc/shader.h |
| +++ b/cc/shader.h |
| @@ -370,6 +370,31 @@ private: |
| int m_colorLocation; |
| }; |
| +class FragmentShaderYUVAVideo { |
|
fgalligan1
2013/02/12 01:20:58
You could make this inherit from FragmentShaderYUV
|
| +public: |
| + FragmentShaderYUVAVideo(); |
| + std::string getShaderString() const; |
| + |
| + void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUniform, int* baseUniformIndex); |
| + |
| + int yTextureLocation() const { return m_yTextureLocation; } |
| + int uTextureLocation() const { return m_uTextureLocation; } |
| + int vTextureLocation() const { return m_vTextureLocation; } |
| + int aTextureLocation() const { return m_aTextureLocation; } |
| + int alphaLocation() const { return m_alphaLocation; } |
| + int yuvMatrixLocation() const { return m_yuvMatrixLocation; } |
| + int yuvAdjLocation() const { return m_yuvAdjLocation; } |
| + |
| +private: |
| + int m_yTextureLocation; |
| + int m_uTextureLocation; |
| + int m_vTextureLocation; |
| + int m_aTextureLocation; |
| + int m_alphaLocation; |
| + int m_yuvMatrixLocation; |
| + int m_yuvAdjLocation; |
| +}; |
| + |
| class FragmentShaderCheckerboard { |
| public: |
| FragmentShaderCheckerboard(); |