| 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/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 NameMap* name_map) const override; | 116 NameMap* name_map) const override; |
| 117 | 117 |
| 118 std::string GetStringForOptionsThatWouldAffectCompilation() const override; | 118 std::string GetStringForOptionsThatWouldAffectCompilation() const override; |
| 119 | 119 |
| 120 void AddDestructionObserver(DestructionObserver* observer); | 120 void AddDestructionObserver(DestructionObserver* observer); |
| 121 void RemoveDestructionObserver(DestructionObserver* observer); | 121 void RemoveDestructionObserver(DestructionObserver* observer); |
| 122 | 122 |
| 123 private: | 123 private: |
| 124 ~ShaderTranslator() override; | 124 ~ShaderTranslator() override; |
| 125 | 125 |
| 126 int GetCompileOptions() const; | 126 ShCompileOptions GetCompileOptions() const; |
| 127 | 127 |
| 128 ShHandle compiler_; | 128 ShHandle compiler_; |
| 129 int compile_options_; | 129 ShCompileOptions compile_options_; |
| 130 base::ObserverList<DestructionObserver> destruction_observers_; | 130 base::ObserverList<DestructionObserver> destruction_observers_; |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace gles2 | 133 } // namespace gles2 |
| 134 } // namespace gpu | 134 } // namespace gpu |
| 135 | 135 |
| 136 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ | 136 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ |
| 137 | 137 |
| OLD | NEW |