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_cache.h

Issue 106623003: Update dependencies to use new angle repository. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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
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_CACHE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_CACHE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_CACHE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_CACHE_H_
7 7
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <map> 10 #include <map>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "gpu/command_buffer/service/shader_translator.h" 14 #include "gpu/command_buffer/service/shader_translator.h"
15 #include "third_party/angle_dx11/include/GLSLANG/ShaderLang.h" 15 #include "third_party/angle/include/GLSLANG/ShaderLang.h"
16 16
17 namespace gpu { 17 namespace gpu {
18 namespace gles2 { 18 namespace gles2 {
19 19
20 // This singleton and the cache that it implements is NOT thread safe. 20 // This singleton and the cache that it implements is NOT thread safe.
21 // We're relying on the fact that the all GLES2DecoderImpl's are used 21 // We're relying on the fact that the all GLES2DecoderImpl's are used
22 // on one thread. 22 // on one thread.
23 // 23 //
24 // TODO(backer): Investigate using glReleaseShaderCompiler as an alternative to 24 // TODO(backer): Investigate using glReleaseShaderCompiler as an alternative to
25 // to this cache. 25 // to this cache.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 typedef std::map<ShaderTranslatorInitParams, ShaderTranslator* > Cache; 83 typedef std::map<ShaderTranslatorInitParams, ShaderTranslator* > Cache;
84 Cache cache_; 84 Cache cache_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(ShaderTranslatorCache); 86 DISALLOW_COPY_AND_ASSIGN(ShaderTranslatorCache);
87 }; 87 };
88 88
89 } // namespace gles2 89 } // namespace gles2
90 } // namespace gpu 90 } // namespace gpu
91 91
92 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_CACHE_H_ 92 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698