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/texture_manager.h

Issue 6713127: Initialize a few uninitialized members in GPU classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « gpu/command_buffer/service/program_manager.cc ('k') | gpu/common/gpu_trace_event.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TEXTURE_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 deleted_(false), 34 deleted_(false),
35 target_(0), 35 target_(0),
36 min_filter_(GL_NEAREST_MIPMAP_LINEAR), 36 min_filter_(GL_NEAREST_MIPMAP_LINEAR),
37 mag_filter_(GL_LINEAR), 37 mag_filter_(GL_LINEAR),
38 wrap_s_(GL_REPEAT), 38 wrap_s_(GL_REPEAT),
39 wrap_t_(GL_REPEAT), 39 wrap_t_(GL_REPEAT),
40 max_level_set_(-1), 40 max_level_set_(-1),
41 texture_complete_(false), 41 texture_complete_(false),
42 cube_complete_(false), 42 cube_complete_(false),
43 npot_(false), 43 npot_(false),
44 has_been_bound_(false),
44 owned_(true) { 45 owned_(true) {
45 } 46 }
46 47
47 // True if this texture meets all the GLES2 criteria for rendering. 48 // True if this texture meets all the GLES2 criteria for rendering.
48 // See section 3.8.2 of the GLES2 spec. 49 // See section 3.8.2 of the GLES2 spec.
49 bool CanRender(const FeatureInfo* feature_info) const; 50 bool CanRender(const FeatureInfo* feature_info) const;
50 51
51 // The service side OpenGL id of the texture. 52 // The service side OpenGL id of the texture.
52 GLuint service_id() const { 53 GLuint service_id() const {
53 return service_id_; 54 return service_id_;
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 TextureInfo::Ref default_texture_2d_; 342 TextureInfo::Ref default_texture_2d_;
342 TextureInfo::Ref default_texture_cube_map_; 343 TextureInfo::Ref default_texture_cube_map_;
343 344
344 DISALLOW_COPY_AND_ASSIGN(TextureManager); 345 DISALLOW_COPY_AND_ASSIGN(TextureManager);
345 }; 346 };
346 347
347 } // namespace gles2 348 } // namespace gles2
348 } // namespace gpu 349 } // namespace gpu
349 350
350 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 351 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/program_manager.cc ('k') | gpu/common/gpu_trace_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698