OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "gpu/gpu_export.h" | 15 #include "gpu/gpu_export.h" |
16 | |
17 #if defined(ANGLE_DX11) | |
18 #include "third_party/angle_dx11/include/GLSLANG/ShaderLang.h" | 16 #include "third_party/angle_dx11/include/GLSLANG/ShaderLang.h" |
19 #else | |
20 #include "third_party/angle/include/GLSLANG/ShaderLang.h" | |
21 #endif | |
22 | 17 |
23 namespace gpu { | 18 namespace gpu { |
24 namespace gles2 { | 19 namespace gles2 { |
25 | 20 |
26 // Translates a GLSL ES 2.0 shader to desktop GLSL shader, or just | 21 // Translates a GLSL ES 2.0 shader to desktop GLSL shader, or just |
27 // validates GLSL ES 2.0 shaders on a true GLSL ES implementation. | 22 // validates GLSL ES 2.0 shaders on a true GLSL ES implementation. |
28 class ShaderTranslatorInterface { | 23 class ShaderTranslatorInterface { |
29 public: | 24 public: |
30 enum GlslImplementationType { | 25 enum GlslImplementationType { |
31 kGlsl, | 26 kGlsl, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 ObserverList<DestructionObserver> destruction_observers_; | 155 ObserverList<DestructionObserver> destruction_observers_; |
161 | 156 |
162 DISALLOW_COPY_AND_ASSIGN(ShaderTranslator); | 157 DISALLOW_COPY_AND_ASSIGN(ShaderTranslator); |
163 }; | 158 }; |
164 | 159 |
165 } // namespace gles2 | 160 } // namespace gles2 |
166 } // namespace gpu | 161 } // namespace gpu |
167 | 162 |
168 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ | 163 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ |
169 | 164 |
OLD | NEW |