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

Side by Side Diff: gpu/config/gpu_test_config.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, 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
« no previous file with comments | « gpu/config/gpu_test_config.h ('k') | no next file » | 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) 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/config/gpu_test_config.h" 5 #include "gpu/config/gpu_test_config.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 } // namespace anonymous 77 } // namespace anonymous
78 78
79 GPUTestConfig::GPUTestConfig() 79 GPUTestConfig::GPUTestConfig()
80 : validate_gpu_info_(true), 80 : validate_gpu_info_(true),
81 os_(kOsUnknown), 81 os_(kOsUnknown),
82 gpu_device_id_(0), 82 gpu_device_id_(0),
83 build_type_(kBuildTypeUnknown), 83 build_type_(kBuildTypeUnknown),
84 api_(kAPIUnknown) {} 84 api_(kAPIUnknown) {}
85 85
86 GPUTestConfig::GPUTestConfig(const GPUTestConfig& other) = default;
87
86 GPUTestConfig::~GPUTestConfig() { 88 GPUTestConfig::~GPUTestConfig() {
87 } 89 }
88 90
89 void GPUTestConfig::set_os(int32_t os) { 91 void GPUTestConfig::set_os(int32_t os) {
90 DCHECK_EQ(0, os & ~(kOsAndroid | kOsWin | kOsMac | kOsLinux | kOsChromeOS)); 92 DCHECK_EQ(0, os & ~(kOsAndroid | kOsWin | kOsMac | kOsLinux | kOsChromeOS));
91 os_ = os; 93 os_ = os;
92 } 94 }
93 95
94 void GPUTestConfig::AddGPUVendor(uint32_t gpu_vendor) { 96 void GPUTestConfig::AddGPUVendor(uint32_t gpu_vendor) {
95 DCHECK_NE(0u, gpu_vendor); 97 DCHECK_NE(0u, gpu_vendor);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // Blacklist rule #79 disables all Gpu acceleration before Windows 7. 311 // Blacklist rule #79 disables all Gpu acceleration before Windows 7.
310 if (base::win::GetVersion() <= base::win::VERSION_VISTA) { 312 if (base::win::GetVersion() <= base::win::VERSION_VISTA) {
311 return true; 313 return true;
312 } 314 }
313 #endif 315 #endif
314 return false; 316 return false;
315 } 317 }
316 318
317 } // namespace gpu 319 } // namespace gpu
318 320
OLDNEW
« no previous file with comments | « gpu/config/gpu_test_config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698