| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_OUTPUT_SHADER_H_ | 5 #ifndef CC_OUTPUT_SHADER_H_ |
| 6 #define CC_OUTPUT_SHADER_H_ | 6 #define CC_OUTPUT_SHADER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 int a_texture_location_; | 854 int a_texture_location_; |
| 855 int alpha_location_; | 855 int alpha_location_; |
| 856 int yuv_matrix_location_; | 856 int yuv_matrix_location_; |
| 857 int yuv_adj_location_; | 857 int yuv_adj_location_; |
| 858 int ya_clamp_rect_location_; | 858 int ya_clamp_rect_location_; |
| 859 int uv_clamp_rect_location_; | 859 int uv_clamp_rect_location_; |
| 860 | 860 |
| 861 DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVAVideo); | 861 DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVAVideo); |
| 862 }; | 862 }; |
| 863 | 863 |
| 864 class FragmentShaderYVideo : public FragmentTexOpaqueBinding { |
| 865 public: |
| 866 std::string GetShaderString( |
| 867 TexCoordPrecision precision, SamplerType sampler) const; |
| 868 static std::string GetShaderHead(); |
| 869 static std::string GetShaderBody(); |
| 870 }; |
| 871 |
| 864 class FragmentShaderColor : public FragmentTexBlendMode { | 872 class FragmentShaderColor : public FragmentTexBlendMode { |
| 865 public: | 873 public: |
| 866 FragmentShaderColor(); | 874 FragmentShaderColor(); |
| 867 std::string GetShaderString( | 875 std::string GetShaderString( |
| 868 TexCoordPrecision precision, SamplerType sampler) const; | 876 TexCoordPrecision precision, SamplerType sampler) const; |
| 869 static std::string GetShaderHead(); | 877 static std::string GetShaderHead(); |
| 870 static std::string GetShaderBody(); | 878 static std::string GetShaderBody(); |
| 871 | 879 |
| 872 void Init(gpu::gles2::GLES2Interface* context, | 880 void Init(gpu::gles2::GLES2Interface* context, |
| 873 unsigned program, | 881 unsigned program, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 895 | 903 |
| 896 private: | 904 private: |
| 897 int color_location_; | 905 int color_location_; |
| 898 | 906 |
| 899 DISALLOW_COPY_AND_ASSIGN(FragmentShaderColorAA); | 907 DISALLOW_COPY_AND_ASSIGN(FragmentShaderColorAA); |
| 900 }; | 908 }; |
| 901 | 909 |
| 902 } // namespace cc | 910 } // namespace cc |
| 903 | 911 |
| 904 #endif // CC_OUTPUT_SHADER_H_ | 912 #endif // CC_OUTPUT_SHADER_H_ |
| OLD | NEW |