| 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_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_SHADER_MANAGER_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_SHADER_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_SHADER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 kShaderStateCompileRequested, | 34 kShaderStateCompileRequested, |
| 35 kShaderStateCompiled, // Signifies compile happened, not valid compile. | 35 kShaderStateCompiled, // Signifies compile happened, not valid compile. |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 static const int kUndefinedShaderVersion = -1; | 38 static const int kUndefinedShaderVersion = -1; |
| 39 | 39 |
| 40 void RequestCompile(scoped_refptr<ShaderTranslatorInterface> translator, | 40 void RequestCompile(scoped_refptr<ShaderTranslatorInterface> translator, |
| 41 TranslatedShaderSourceType type); | 41 TranslatedShaderSourceType type); |
| 42 | 42 |
| 43 void DoCompile(); | 43 void DoCompile(); |
| 44 void RefreshTranslatedShaderSource(); |
| 44 | 45 |
| 45 ShaderState shader_state() const { | 46 ShaderState shader_state() const { |
| 46 return shader_state_; | 47 return shader_state_; |
| 47 } | 48 } |
| 48 | 49 |
| 49 GLuint service_id() const { | 50 GLuint service_id() const { |
| 50 return marked_for_deletion_ ? 0 : service_id_; | 51 return marked_for_deletion_ ? 0 : service_id_; |
| 51 } | 52 } |
| 52 | 53 |
| 53 GLenum shader_type() const { | 54 GLenum shader_type() const { |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 void RemoveShader(Shader* shader); | 289 void RemoveShader(Shader* shader); |
| 289 | 290 |
| 290 DISALLOW_COPY_AND_ASSIGN(ShaderManager); | 291 DISALLOW_COPY_AND_ASSIGN(ShaderManager); |
| 291 }; | 292 }; |
| 292 | 293 |
| 293 } // namespace gles2 | 294 } // namespace gles2 |
| 294 } // namespace gpu | 295 } // namespace gpu |
| 295 | 296 |
| 296 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_MANAGER_H_ | 297 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_MANAGER_H_ |
| 297 | 298 |
| OLD | NEW |