| 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 #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" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void RemoveDestructionObserver(DestructionObserver* observer); | 111 void RemoveDestructionObserver(DestructionObserver* observer); |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 ~ShaderTranslator() override; | 114 ~ShaderTranslator() override; |
| 115 | 115 |
| 116 int GetCompileOptions() const; | 116 int GetCompileOptions() const; |
| 117 | 117 |
| 118 ShHandle compiler_; | 118 ShHandle compiler_; |
| 119 bool implementation_is_glsl_es_; | 119 bool implementation_is_glsl_es_; |
| 120 ShCompileOptions driver_bug_workarounds_; | 120 ShCompileOptions driver_bug_workarounds_; |
| 121 ObserverList<DestructionObserver> destruction_observers_; | 121 base::ObserverList<DestructionObserver> destruction_observers_; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace gles2 | 124 } // namespace gles2 |
| 125 } // namespace gpu | 125 } // namespace gpu |
| 126 | 126 |
| 127 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ | 127 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ |
| 128 | 128 |
| OLD | NEW |