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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 enum TexCoordPrecision { | 25 enum TexCoordPrecision { |
26 TexCoordPrecisionNA, | 26 TexCoordPrecisionNA, |
27 TexCoordPrecisionMedium, | 27 TexCoordPrecisionMedium, |
28 TexCoordPrecisionHigh, | 28 TexCoordPrecisionHigh, |
29 }; | 29 }; |
30 | 30 |
31 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( | 31 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( |
32 WebKit::WebGraphicsContext3D* context, | 32 WebKit::WebGraphicsContext3D* context, |
33 int highp_threshold_min, | 33 int highp_threshold_min, |
34 const gfx::Point& max_coordinate); | 34 gfx::Point max_coordinate); |
35 | 35 |
36 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( | 36 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( |
37 WebKit::WebGraphicsContext3D* context, | 37 WebKit::WebGraphicsContext3D* context, |
38 int highp_threshold_min, | 38 int highp_threshold_min, |
39 const gfx::Size& max_size); | 39 gfx::Size max_size); |
40 | 40 |
41 class VertexShaderPosTex { | 41 class VertexShaderPosTex { |
42 public: | 42 public: |
43 VertexShaderPosTex(); | 43 VertexShaderPosTex(); |
44 | 44 |
45 void Init(WebKit::WebGraphicsContext3D*, | 45 void Init(WebKit::WebGraphicsContext3D*, |
46 unsigned program, | 46 unsigned program, |
47 bool using_bind_uniform, | 47 bool using_bind_uniform, |
48 int* base_uniform_index); | 48 int* base_uniform_index); |
49 std::string GetShaderString() const; | 49 std::string GetShaderString() const; |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 int tex_transform_location_; | 605 int tex_transform_location_; |
606 int frequency_location_; | 606 int frequency_location_; |
607 int color_location_; | 607 int color_location_; |
608 | 608 |
609 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); | 609 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); |
610 }; | 610 }; |
611 | 611 |
612 } // namespace cc | 612 } // namespace cc |
613 | 613 |
614 #endif // CC_OUTPUT_SHADER_H_ | 614 #endif // CC_OUTPUT_SHADER_H_ |
OLD | NEW |