| Index: cc/output/shader.h
|
| diff --git a/cc/output/shader.h b/cc/output/shader.h
|
| index 327c5edcd2145f8891ff1a6470bb817336702e10..21b4a70de5aaac404dc18061f6483967841dddf7 100644
|
| --- a/cc/output/shader.h
|
| +++ b/cc/output/shader.h
|
| @@ -767,7 +767,7 @@ class FragmentShaderYUVVideo : public FragmentTexBlendMode {
|
| std::string GetShaderString(
|
| TexCoordPrecision precision, SamplerType sampler) const;
|
|
|
| - void SetFeatures(bool use_alpha_texture, bool use_nv12);
|
| + void SetFeatures(bool use_alpha_texture, bool use_nv12, bool use_color_lut);
|
|
|
| void Init(gpu::gles2::GLES2Interface* context,
|
| unsigned program,
|
| @@ -777,26 +777,35 @@ class FragmentShaderYUVVideo : public FragmentTexBlendMode {
|
| int v_texture_location() const { return v_texture_location_; }
|
| int uv_texture_location() const { return uv_texture_location_; }
|
| int a_texture_location() const { return a_texture_location_; }
|
| + int lut_texture_location() const { return lut_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_; }
|
| + int resource_multiplier_location() const {
|
| + return resource_multiplier_location_;
|
| + }
|
| + int resource_offset_location() const { return resource_offset_location_; }
|
|
|
| private:
|
| bool use_alpha_texture_;
|
| bool use_nv12_;
|
| + bool use_color_lut_;
|
|
|
| int y_texture_location_;
|
| int u_texture_location_;
|
| int v_texture_location_;
|
| int uv_texture_location_;
|
| int a_texture_location_;
|
| + int lut_texture_location_;
|
| int alpha_location_;
|
| int yuv_matrix_location_;
|
| int yuv_adj_location_;
|
| int ya_clamp_rect_location_;
|
| int uv_clamp_rect_location_;
|
| + int resource_multiplier_location_;
|
| + int resource_offset_location_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVVideo);
|
| };
|
|
|