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

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

Issue 18161007: Replace angle_path gyp variable with regular path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d3d11
Patch Set: rebase Created 7 years, 5 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
« no previous file with comments | « gpu/DEPS ('k') | gpu/command_buffer/service/shader_translator_cache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" 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
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
OLDNEW
« no previous file with comments | « gpu/DEPS ('k') | gpu/command_buffer/service/shader_translator_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698