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

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

Issue 1725113002: gpu: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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_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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 GLenum type; 293 GLenum type;
294 scoped_refptr<gl::GLImage> image; 294 scoped_refptr<gl::GLImage> image;
295 scoped_refptr<GLStreamTextureImage> stream_texture_image; 295 scoped_refptr<GLStreamTextureImage> stream_texture_image;
296 ImageState image_state; 296 ImageState image_state;
297 uint32_t estimated_size; 297 uint32_t estimated_size;
298 bool internal_workaround; 298 bool internal_workaround;
299 }; 299 };
300 300
301 struct FaceInfo { 301 struct FaceInfo {
302 FaceInfo(); 302 FaceInfo();
303 FaceInfo(const FaceInfo& other);
303 ~FaceInfo(); 304 ~FaceInfo();
304 305
305 // This is relative to base_level and max_level of a texture. 306 // This is relative to base_level and max_level of a texture.
306 GLsizei num_mip_levels; 307 GLsizei num_mip_levels;
307 // This contains slots for all levels starting at 0. 308 // This contains slots for all levels starting at 0.
308 std::vector<LevelInfo> level_infos; 309 std::vector<LevelInfo> level_infos;
309 }; 310 };
310 311
311 // Helper for SetLevel*Image. |stream_texture_image| may be null. 312 // Helper for SetLevel*Image. |stream_texture_image| may be null.
312 void SetLevelImageInternal(GLenum target, 313 void SetLevelImageInternal(GLenum target,
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 private: 1099 private:
1099 DecoderTextureState* texture_state_; 1100 DecoderTextureState* texture_state_;
1100 base::TimeTicks begin_time_; 1101 base::TimeTicks begin_time_;
1101 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); 1102 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer);
1102 }; 1103 };
1103 1104
1104 } // namespace gles2 1105 } // namespace gles2
1105 } // namespace gpu 1106 } // namespace gpu
1106 1107
1107 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 1108 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_definition.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698