Chromium Code Reviews| 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 #include "third_party/angle_dx11/include/GLSLANG/ShaderLang.h" | 16 #include "third_party/angle/include/GLSLANG/ShaderLang.h" |
|
Zhenyao Mo
2013/12/09 20:18:34
I would suggest define a angle_headers.h in the ch
| |
| 17 | 17 |
| 18 namespace gpu { | 18 namespace gpu { |
| 19 namespace gles2 { | 19 namespace gles2 { |
| 20 | 20 |
| 21 // 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 |
| 22 // 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. |
| 23 class ShaderTranslatorInterface { | 23 class ShaderTranslatorInterface { |
| 24 public: | 24 public: |
| 25 enum GlslImplementationType { | 25 enum GlslImplementationType { |
| 26 kGlsl, | 26 kGlsl, |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 ObserverList<DestructionObserver> destruction_observers_; | 161 ObserverList<DestructionObserver> destruction_observers_; |
| 162 | 162 |
| 163 DISALLOW_COPY_AND_ASSIGN(ShaderTranslator); | 163 DISALLOW_COPY_AND_ASSIGN(ShaderTranslator); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace gles2 | 166 } // namespace gles2 |
| 167 } // namespace gpu | 167 } // namespace gpu |
| 168 | 168 |
| 169 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ | 169 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ |
| 170 | 170 |
| OLD | NEW |