| 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 #include "gpu/command_buffer/service/shader_translator.h" | 5 #include "gpu/command_buffer/service/shader_translator.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "base/at_exit.h" | 11 #include "base/at_exit.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/debug/trace_event.h" | 13 #include "base/debug/trace_event.h" |
| 14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 17 #include "ui/gl/gl_switches.h" | 17 #include "gpu/command_buffer/service/gpu_switches.h" |
| 18 | 18 |
| 19 namespace gpu { | 19 namespace gpu { |
| 20 namespace gles2 { | 20 namespace gles2 { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 class ShaderTranslatorInitializer { | 24 class ShaderTranslatorInitializer { |
| 25 public: | 25 public: |
| 26 ShaderTranslatorInitializer() { | 26 ShaderTranslatorInitializer() { |
| 27 TRACE_EVENT0("gpu", "ShInitialize"); | 27 TRACE_EVENT0("gpu", "ShInitialize"); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 destruction_observers_, | 205 destruction_observers_, |
| 206 OnDestruct(this)); | 206 OnDestruct(this)); |
| 207 | 207 |
| 208 if (compiler_ != NULL) | 208 if (compiler_ != NULL) |
| 209 ShDestruct(compiler_); | 209 ShDestruct(compiler_); |
| 210 } | 210 } |
| 211 | 211 |
| 212 } // namespace gles2 | 212 } // namespace gles2 |
| 213 } // namespace gpu | 213 } // namespace gpu |
| 214 | 214 |
| OLD | NEW |