| 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/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( | 46 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( |
| 47 gpu::gles2::GLES2Interface* context, | 47 gpu::gles2::GLES2Interface* context, |
| 48 int *highp_threshold_cache, | 48 int *highp_threshold_cache, |
| 49 int highp_threshold_min, | 49 int highp_threshold_min, |
| 50 gfx::Point max_coordinate); | 50 gfx::Point max_coordinate); |
| 51 | 51 |
| 52 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( | 52 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( |
| 53 gpu::gles2::GLES2Interface* context, | 53 gpu::gles2::GLES2Interface* context, |
| 54 int *highp_threshold_cache, | 54 int *highp_threshold_cache, |
| 55 int highp_threshold_min, | 55 int highp_threshold_min, |
| 56 const gfx::Size& max_size); | 56 gfx::Size max_size); |
| 57 | 57 |
| 58 class VertexShaderPosTex { | 58 class VertexShaderPosTex { |
| 59 public: | 59 public: |
| 60 VertexShaderPosTex(); | 60 VertexShaderPosTex(); |
| 61 | 61 |
| 62 void Init(gpu::gles2::GLES2Interface* context, | 62 void Init(gpu::gles2::GLES2Interface* context, |
| 63 unsigned program, | 63 unsigned program, |
| 64 int* base_uniform_index); | 64 int* base_uniform_index); |
| 65 std::string GetShaderString() const; | 65 std::string GetShaderString() const; |
| 66 | 66 |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 int tex_transform_location_; | 724 int tex_transform_location_; |
| 725 int frequency_location_; | 725 int frequency_location_; |
| 726 int color_location_; | 726 int color_location_; |
| 727 | 727 |
| 728 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); | 728 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); |
| 729 }; | 729 }; |
| 730 | 730 |
| 731 } // namespace cc | 731 } // namespace cc |
| 732 | 732 |
| 733 #endif // CC_OUTPUT_SHADER_H_ | 733 #endif // CC_OUTPUT_SHADER_H_ |
| OLD | NEW |