| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void AddDestructionObserver(DestructionObserver* observer); | 103 void AddDestructionObserver(DestructionObserver* observer); |
| 104 void RemoveDestructionObserver(DestructionObserver* observer); | 104 void RemoveDestructionObserver(DestructionObserver* observer); |
| 105 | 105 |
| 106 private: | 106 private: |
| 107 friend class base::RefCounted<ShaderTranslator>; | 107 friend class base::RefCounted<ShaderTranslator>; |
| 108 | 108 |
| 109 ~ShaderTranslator() override; | 109 ~ShaderTranslator() override; |
| 110 int GetCompileOptions() const; | 110 int GetCompileOptions() const; |
| 111 | 111 |
| 112 ShHandle compiler_; | 112 ShHandle compiler_; |
| 113 ShBuiltInResources compiler_options_; | |
| 114 bool implementation_is_glsl_es_; | 113 bool implementation_is_glsl_es_; |
| 115 ShCompileOptions driver_bug_workarounds_; | 114 ShCompileOptions driver_bug_workarounds_; |
| 116 ObserverList<DestructionObserver> destruction_observers_; | 115 ObserverList<DestructionObserver> destruction_observers_; |
| 117 | 116 |
| 118 DISALLOW_COPY_AND_ASSIGN(ShaderTranslator); | 117 DISALLOW_COPY_AND_ASSIGN(ShaderTranslator); |
| 119 }; | 118 }; |
| 120 | 119 |
| 121 } // namespace gles2 | 120 } // namespace gles2 |
| 122 } // namespace gpu | 121 } // namespace gpu |
| 123 | 122 |
| 124 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ | 123 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_TRANSLATOR_H_ |
| 125 | 124 |
| OLD | NEW |