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

Unified Diff: gpu/command_buffer/service/shader_translator_cache.cc

Issue 217813004: Make ShaderTranslatorCache thread safe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/shader_translator_cache.h ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/shader_translator_cache.cc
diff --git a/gpu/command_buffer/service/shader_translator_cache.cc b/gpu/command_buffer/service/shader_translator_cache.cc
index 9626a0e25ef590f7dabb02ab726d36389b0c1604..f204186c7e70b86576bf4118693fc39f1b7bda3b 100644
--- a/gpu/command_buffer/service/shader_translator_cache.cc
+++ b/gpu/command_buffer/service/shader_translator_cache.cc
@@ -7,14 +7,11 @@
namespace gpu {
namespace gles2 {
-ShaderTranslatorCache* ShaderTranslatorCache::GetInstance() {
- return Singleton<ShaderTranslatorCache>::get();
-}
-
ShaderTranslatorCache::ShaderTranslatorCache() {
}
ShaderTranslatorCache::~ShaderTranslatorCache() {
+ DCHECK(cache_.empty());
}
void ShaderTranslatorCache::OnDestruct(ShaderTranslator* translator) {
« no previous file with comments | « gpu/command_buffer/service/shader_translator_cache.h ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698