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

Side by Side Diff: gpu/config/gpu_info.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
« no previous file with comments | « gpu/config/dx_diag_node.cc ('k') | gpu/config/gpu_info.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) 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_CONFIG_GPU_INFO_H_ 5 #ifndef GPU_CONFIG_GPU_INFO_H_
6 #define GPU_CONFIG_GPU_INFO_H_ 6 #define GPU_CONFIG_GPU_INFO_H_
7 7
8 // Provides access to the GPU information for the system 8 // Provides access to the GPU information for the system
9 // on which chrome is currently running. 9 // on which chrome is currently running.
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 VideoCodecProfile profile; 60 VideoCodecProfile profile;
61 gfx::Size max_resolution; 61 gfx::Size max_resolution;
62 gfx::Size min_resolution; 62 gfx::Size min_resolution;
63 }; 63 };
64 64
65 using VideoDecodeAcceleratorSupportedProfiles = 65 using VideoDecodeAcceleratorSupportedProfiles =
66 std::vector<VideoDecodeAcceleratorSupportedProfile>; 66 std::vector<VideoDecodeAcceleratorSupportedProfile>;
67 67
68 struct GPU_EXPORT VideoDecodeAcceleratorCapabilities { 68 struct GPU_EXPORT VideoDecodeAcceleratorCapabilities {
69 VideoDecodeAcceleratorCapabilities(); 69 VideoDecodeAcceleratorCapabilities();
70 VideoDecodeAcceleratorCapabilities(
71 const VideoDecodeAcceleratorCapabilities& other);
70 ~VideoDecodeAcceleratorCapabilities(); 72 ~VideoDecodeAcceleratorCapabilities();
71 VideoDecodeAcceleratorSupportedProfiles supported_profiles; 73 VideoDecodeAcceleratorSupportedProfiles supported_profiles;
72 uint32_t flags; 74 uint32_t flags;
73 }; 75 };
74 76
75 // Specification of an encoding profile supported by a hardware encoder. 77 // Specification of an encoding profile supported by a hardware encoder.
76 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile { 78 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile {
77 VideoCodecProfile profile; 79 VideoCodecProfile profile;
78 gfx::Size max_resolution; 80 gfx::Size max_resolution;
79 uint32_t max_framerate_numerator; 81 uint32_t max_framerate_numerator;
(...skipping 20 matching lines...) Expand all
100 102
101 // The strings that describe the GPU. 103 // The strings that describe the GPU.
102 // In Linux these strings are obtained through libpci. 104 // In Linux these strings are obtained through libpci.
103 // In Win/MacOSX, these two strings are not filled at the moment. 105 // In Win/MacOSX, these two strings are not filled at the moment.
104 // In Android, these are respectively GL_VENDOR and GL_RENDERER. 106 // In Android, these are respectively GL_VENDOR and GL_RENDERER.
105 std::string vendor_string; 107 std::string vendor_string;
106 std::string device_string; 108 std::string device_string;
107 }; 109 };
108 110
109 GPUInfo(); 111 GPUInfo();
112 GPUInfo(const GPUInfo& other);
110 ~GPUInfo(); 113 ~GPUInfo();
111 114
112 bool SupportsAccelerated2dCanvas() const { 115 bool SupportsAccelerated2dCanvas() const {
113 return !can_lose_context && !software_rendering; 116 return !can_lose_context && !software_rendering;
114 } 117 }
115 118
116 // The amount of time taken to get from the process starting to the message 119 // The amount of time taken to get from the process starting to the message
117 // loop being pumped. 120 // loop being pumped.
118 base::TimeDelta initialization_time; 121 base::TimeDelta initialization_time;
119 122
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 virtual ~Enumerator() {} 280 virtual ~Enumerator() {}
278 }; 281 };
279 282
280 // Outputs the fields in this structure to the provided enumerator. 283 // Outputs the fields in this structure to the provided enumerator.
281 void EnumerateFields(Enumerator* enumerator) const; 284 void EnumerateFields(Enumerator* enumerator) const;
282 }; 285 };
283 286
284 } // namespace gpu 287 } // namespace gpu
285 288
286 #endif // GPU_CONFIG_GPU_INFO_H_ 289 #endif // GPU_CONFIG_GPU_INFO_H_
OLDNEW
« no previous file with comments | « gpu/config/dx_diag_node.cc ('k') | gpu/config/gpu_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698