| Index: cc/output/shader.h
|
| diff --git a/cc/output/shader.h b/cc/output/shader.h
|
| index 88b632e81b4bc9be92aa3f1aa822d711ce1535d5..836c9f57e05b28ea043cd7b1dd0b02adf990f74d 100644
|
| --- a/cc/output/shader.h
|
| +++ b/cc/output/shader.h
|
| @@ -794,6 +794,37 @@ class FragmentShaderYUVVideo : public FragmentTexBlendMode {
|
| DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVVideo);
|
| };
|
|
|
| +class FragmentShaderNV12Video : public FragmentTexBlendMode {
|
| + public:
|
| + FragmentShaderNV12Video();
|
| + 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 y_texture_location() const { return y_texture_location_; }
|
| + int uv_texture_location() const { return uv_texture_location_; }
|
| + int alpha_location() const { return alpha_location_; }
|
| + int yuv_matrix_location() const { return yuv_matrix_location_; }
|
| + int yuv_adj_location() const { return yuv_adj_location_; }
|
| + int ya_clamp_rect_location() const { return ya_clamp_rect_location_; }
|
| + int uv_clamp_rect_location() const { return uv_clamp_rect_location_; }
|
| +
|
| + private:
|
| + int y_texture_location_;
|
| + int uv_texture_location_;
|
| + int alpha_location_;
|
| + int yuv_matrix_location_;
|
| + int yuv_adj_location_;
|
| + int ya_clamp_rect_location_;
|
| + int uv_clamp_rect_location_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(FragmentShaderNV12Video);
|
| +};
|
| +
|
| class FragmentShaderYUVAVideo : public FragmentTexBlendMode {
|
| public:
|
| FragmentShaderYUVAVideo();
|
|
|