Index: cc/output/shader.h |
diff --git a/cc/output/shader.h b/cc/output/shader.h |
index 327c5edcd2145f8891ff1a6470bb817336702e10..15ae41e9b42027e87b66cfe579fad10d2157a9d7 100644 |
--- a/cc/output/shader.h |
+++ b/cc/output/shader.h |
@@ -801,6 +801,27 @@ class FragmentShaderYUVVideo : public FragmentTexBlendMode { |
DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVVideo); |
}; |
+class FragmentShaderYVideo : public FragmentTexOpaqueBinding { |
+ public: |
+ FragmentShaderYVideo(); |
+ std::string GetShaderString(TexCoordPrecision precision, |
+ SamplerType sampler) const; |
+ static std::string GetShaderHead(); |
+ static std::string GetShaderBody(); |
+ |
+ void Init(gpu::gles2::GLES2Interface* context, |
+ unsigned program, |
+ int* base_uniform_index); |
+ int x_derivative_location() const { return x_derivative_location_; } |
+ int y_derivative_location() const { return y_derivative_location_; } |
+ |
+ private: |
+ int x_derivative_location_; |
+ int y_derivative_location_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(FragmentShaderYVideo); |
+}; |
+ |
class FragmentShaderColor : public FragmentTexBlendMode { |
public: |
FragmentShaderColor(); |