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

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

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 #include "gpu/command_buffer/service/texture_manager.h" 5 #include "gpu/command_buffer/service/texture_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 estimated_size(rhs.estimated_size), 396 estimated_size(rhs.estimated_size),
397 internal_workaround(rhs.internal_workaround) {} 397 internal_workaround(rhs.internal_workaround) {}
398 398
399 Texture::LevelInfo::~LevelInfo() { 399 Texture::LevelInfo::~LevelInfo() {
400 } 400 }
401 401
402 Texture::FaceInfo::FaceInfo() 402 Texture::FaceInfo::FaceInfo()
403 : num_mip_levels(0) { 403 : num_mip_levels(0) {
404 } 404 }
405 405
406 Texture::FaceInfo::FaceInfo(const FaceInfo& other) = default;
407
406 Texture::FaceInfo::~FaceInfo() { 408 Texture::FaceInfo::~FaceInfo() {
407 } 409 }
408 410
409 Texture::CanRenderCondition Texture::GetCanRenderCondition() const { 411 Texture::CanRenderCondition Texture::GetCanRenderCondition() const {
410 if (target_ == 0) 412 if (target_ == 0)
411 return CAN_RENDER_ALWAYS; 413 return CAN_RENDER_ALWAYS;
412 414
413 if (target_ != GL_TEXTURE_EXTERNAL_OES) { 415 if (target_ != GL_TEXTURE_EXTERNAL_OES) {
414 if (face_infos_.empty() || 416 if (face_infos_.empty() ||
415 static_cast<size_t>(base_level_) >= face_infos_[0].level_infos.size()) { 417 static_cast<size_t>(base_level_) >= face_infos_[0].level_infos.size()) {
(...skipping 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 uint32_t TextureManager::GetServiceIdGeneration() const { 2765 uint32_t TextureManager::GetServiceIdGeneration() const {
2764 return current_service_id_generation_; 2766 return current_service_id_generation_;
2765 } 2767 }
2766 2768
2767 void TextureManager::IncrementServiceIdGeneration() { 2769 void TextureManager::IncrementServiceIdGeneration() {
2768 current_service_id_generation_++; 2770 current_service_id_generation_++;
2769 } 2771 }
2770 2772
2771 } // namespace gles2 2773 } // namespace gles2
2772 } // namespace gpu 2774 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698