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

Side by Side Diff: gpu/config/gpu_info_collector.cc

Issue 2261893003: Remove GpuInfo::can_lose_context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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_info.cc ('k') | gpu/config/gpu_info_collector_android.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 #include "gpu/config/gpu_info_collector.h" 5 #include "gpu/config/gpu_info_collector.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 basic_gpu_info->gl_ws_version = context_gpu_info.gl_ws_version; 206 basic_gpu_info->gl_ws_version = context_gpu_info.gl_ws_version;
207 basic_gpu_info->gl_ws_extensions = context_gpu_info.gl_ws_extensions; 207 basic_gpu_info->gl_ws_extensions = context_gpu_info.gl_ws_extensions;
208 basic_gpu_info->gl_reset_notification_strategy = 208 basic_gpu_info->gl_reset_notification_strategy =
209 context_gpu_info.gl_reset_notification_strategy; 209 context_gpu_info.gl_reset_notification_strategy;
210 210
211 if (!context_gpu_info.driver_vendor.empty()) 211 if (!context_gpu_info.driver_vendor.empty())
212 basic_gpu_info->driver_vendor = context_gpu_info.driver_vendor; 212 basic_gpu_info->driver_vendor = context_gpu_info.driver_vendor;
213 if (!context_gpu_info.driver_version.empty()) 213 if (!context_gpu_info.driver_version.empty())
214 basic_gpu_info->driver_version = context_gpu_info.driver_version; 214 basic_gpu_info->driver_version = context_gpu_info.driver_version;
215 215
216 basic_gpu_info->can_lose_context = context_gpu_info.can_lose_context;
217 basic_gpu_info->sandboxed = context_gpu_info.sandboxed; 216 basic_gpu_info->sandboxed = context_gpu_info.sandboxed;
218 basic_gpu_info->direct_rendering = context_gpu_info.direct_rendering; 217 basic_gpu_info->direct_rendering = context_gpu_info.direct_rendering;
219 basic_gpu_info->in_process_gpu = context_gpu_info.in_process_gpu; 218 basic_gpu_info->in_process_gpu = context_gpu_info.in_process_gpu;
220 basic_gpu_info->context_info_state = context_gpu_info.context_info_state; 219 basic_gpu_info->context_info_state = context_gpu_info.context_info_state;
221 basic_gpu_info->initialization_time = context_gpu_info.initialization_time; 220 basic_gpu_info->initialization_time = context_gpu_info.initialization_time;
222 basic_gpu_info->video_decode_accelerator_capabilities = 221 basic_gpu_info->video_decode_accelerator_capabilities =
223 context_gpu_info.video_decode_accelerator_capabilities; 222 context_gpu_info.video_decode_accelerator_capabilities;
224 basic_gpu_info->video_encode_accelerator_supported_profiles = 223 basic_gpu_info->video_encode_accelerator_supported_profiles =
225 context_gpu_info.video_encode_accelerator_supported_profiles; 224 context_gpu_info.video_encode_accelerator_supported_profiles;
226 basic_gpu_info->jpeg_decode_accelerator_supported = 225 basic_gpu_info->jpeg_decode_accelerator_supported =
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 for (size_t ii = 0; ii < gpu_info->secondary_gpus.size(); ++ii) { 280 for (size_t ii = 0; ii < gpu_info->secondary_gpus.size(); ++ii) {
282 if (active_vendor_id == gpu_info->secondary_gpus[ii].vendor_id) { 281 if (active_vendor_id == gpu_info->secondary_gpus[ii].vendor_id) {
283 gpu_info->secondary_gpus[ii].active = true; 282 gpu_info->secondary_gpus[ii].active = true;
284 return; 283 return;
285 } 284 }
286 } 285 }
287 } 286 }
288 287
289 } // namespace gpu 288 } // namespace gpu
290 289
OLDNEW
« no previous file with comments | « gpu/config/gpu_info.cc ('k') | gpu/config/gpu_info_collector_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698