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 12 matching lines...) Expand all Loading... |
23 namespace cc { | 23 namespace cc { |
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_cache, |
33 int highp_threshold_min, | 34 int highp_threshold_min, |
34 gfx::Point max_coordinate); | 35 gfx::Point max_coordinate); |
35 | 36 |
36 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( | 37 CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( |
37 WebKit::WebGraphicsContext3D* context, | 38 WebKit::WebGraphicsContext3D* context, |
| 39 int *highp_threshold_cache, |
38 int highp_threshold_min, | 40 int highp_threshold_min, |
39 gfx::Size max_size); | 41 gfx::Size max_size); |
40 | 42 |
41 class VertexShaderPosTex { | 43 class VertexShaderPosTex { |
42 public: | 44 public: |
43 VertexShaderPosTex(); | 45 VertexShaderPosTex(); |
44 | 46 |
45 void Init(WebKit::WebGraphicsContext3D* context, | 47 void Init(WebKit::WebGraphicsContext3D* context, |
46 unsigned program, | 48 unsigned program, |
47 bool using_bind_uniform, | 49 bool using_bind_uniform, |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 int tex_transform_location_; | 607 int tex_transform_location_; |
606 int frequency_location_; | 608 int frequency_location_; |
607 int color_location_; | 609 int color_location_; |
608 | 610 |
609 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); | 611 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); |
610 }; | 612 }; |
611 | 613 |
612 } // namespace cc | 614 } // namespace cc |
613 | 615 |
614 #endif // CC_OUTPUT_SHADER_H_ | 616 #endif // CC_OUTPUT_SHADER_H_ |
OLD | NEW |