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

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

Issue 3743001: FBTF: Fix more ctor/dtors found by clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Rebase to pick up mac fix on ToT Created 10 years, 2 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // True if compilation succeeded. 84 // True if compilation succeeded.
85 bool valid_; 85 bool valid_;
86 86
87 // The shader source as passed to glShaderSource. 87 // The shader source as passed to glShaderSource.
88 std::string source_; 88 std::string source_;
89 89
90 // The shader translation log. 90 // The shader translation log.
91 std::string log_info_; 91 std::string log_info_;
92 }; 92 };
93 93
94 ShaderManager() { } 94 ShaderManager();
95 ~ShaderManager(); 95 ~ShaderManager();
96 96
97 // Must call before destruction. 97 // Must call before destruction.
98 void Destroy(bool have_context); 98 void Destroy(bool have_context);
99 99
100 // Creates a shader info for the given shader ID. 100 // Creates a shader info for the given shader ID.
101 void CreateShaderInfo(GLuint client_id, 101 void CreateShaderInfo(GLuint client_id,
102 GLuint service_id, 102 GLuint service_id,
103 GLenum shader_type); 103 GLenum shader_type);
104 104
(...skipping 13 matching lines...) Expand all
118 ShaderInfoMap shader_infos_; 118 ShaderInfoMap shader_infos_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(ShaderManager); 120 DISALLOW_COPY_AND_ASSIGN(ShaderManager);
121 }; 121 };
122 122
123 } // namespace gles2 123 } // namespace gles2
124 } // namespace gpu 124 } // namespace gpu
125 125
126 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_MANAGER_H_ 126 #endif // GPU_COMMAND_BUFFER_SERVICE_SHADER_MANAGER_H_
127 127
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/renderbuffer_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