Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(689)

Side by Side Diff: gpu/command_buffer/service/shader_manager.h

Issue 1463673004: gpu: Update translated shader source after link. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed zmo's feedback Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/program_manager.cc ('k') | gpu/command_buffer/service/shader_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698