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

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, 10 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 GLenum format; 278 GLenum format;
279 GLenum type; 279 GLenum type;
280 scoped_refptr<gl::GLImage> image; 280 scoped_refptr<gl::GLImage> image;
281 ImageState image_state; 281 ImageState image_state;
282 uint32_t estimated_size; 282 uint32_t estimated_size;
283 bool internal_workaround; 283 bool internal_workaround;
284 }; 284 };
285 285
286 struct FaceInfo { 286 struct FaceInfo {
287 FaceInfo(); 287 FaceInfo();
288 FaceInfo(const FaceInfo& other);
288 ~FaceInfo(); 289 ~FaceInfo();
289 290
290 // This is relative to base_level and max_level of a texture. 291 // This is relative to base_level and max_level of a texture.
291 GLsizei num_mip_levels; 292 GLsizei num_mip_levels;
292 // This contains slots for all levels starting at 0. 293 // This contains slots for all levels starting at 0.
293 std::vector<LevelInfo> level_infos; 294 std::vector<LevelInfo> level_infos;
294 }; 295 };
295 296
296 // Set the info for a particular level. 297 // Set the info for a particular level.
297 void SetLevelInfo(GLenum target, 298 void SetLevelInfo(GLenum target,
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 private: 1066 private:
1066 DecoderTextureState* texture_state_; 1067 DecoderTextureState* texture_state_;
1067 base::TimeTicks begin_time_; 1068 base::TimeTicks begin_time_;
1068 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); 1069 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer);
1069 }; 1070 };
1070 1071
1071 } // namespace gles2 1072 } // namespace gles2
1072 } // namespace gpu 1073 } // namespace gpu
1073 1074
1074 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 1075 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698