Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Side by Side Diff: gpu/command_buffer/service/shader_translator.h

Issue 16737007: Make it possible to switch between two different versions of ANGLE. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
19 #else
16 #include "third_party/angle/include/GLSLANG/ShaderLang.h" 20 #include "third_party/angle/include/GLSLANG/ShaderLang.h"
21 #endif
17 22
18 namespace gpu { 23 namespace gpu {
19 namespace gles2 { 24 namespace gles2 {
20 25
21 // Translates a GLSL ES 2.0 shader to desktop GLSL shader, or just 26 // 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. 27 // validates GLSL ES 2.0 shaders on a true GLSL ES implementation.
23 class ShaderTranslatorInterface { 28 class ShaderTranslatorInterface {
24 public: 29 public:
25 enum GlslImplementationType { 30 enum GlslImplementationType {
26 kGlsl, 31 kGlsl,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 ObserverList<DestructionObserver> destruction_observers_; 160 ObserverList<DestructionObserver> destruction_observers_;
156 161
157 DISALLOW_COPY_AND_ASSIGN(ShaderTranslator); 162 DISALLOW_COPY_AND_ASSIGN(ShaderTranslator);
158 }; 163 };
159 164
160 } // namespace gles2 165 } // namespace gles2
161 } // namespace gpu 166 } // namespace gpu
162 167
163 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ 168 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_
164 169
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698