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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 27603004: Ported GpuCrashTest to Telemetry, renaming the test to ContextLost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed dtu's review feedback. Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/browser_url_handler_impl.cc ('k') | content/public/common/content_switches.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/browser/gpu/gpu_data_manager_impl_private.h" 5 #include "content/browser/gpu/gpu_data_manager_impl_private.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 gpu::GpuSwitchingOption option = 1015 gpu::GpuSwitchingOption option =
1016 gpu::StringToGpuSwitchingOption(option_string); 1016 gpu::StringToGpuSwitchingOption(option_string);
1017 if (option != gpu::GPU_SWITCHING_OPTION_UNKNOWN) 1017 if (option != gpu::GPU_SWITCHING_OPTION_UNKNOWN)
1018 gpu_switching_ = option; 1018 gpu_switching_ = option;
1019 } 1019 }
1020 1020
1021 #if defined(OS_MACOSX) 1021 #if defined(OS_MACOSX)
1022 CGGetActiveDisplayList (0, NULL, &display_count_); 1022 CGGetActiveDisplayList (0, NULL, &display_count_);
1023 CGDisplayRegisterReconfigurationCallback(DisplayReconfigCallback, owner_); 1023 CGDisplayRegisterReconfigurationCallback(DisplayReconfigCallback, owner_);
1024 #endif // OS_MACOSX 1024 #endif // OS_MACOSX
1025
1026 // For testing only.
1027 if (command_line->HasSwitch(switches::kDisableDomainBlockingFor3DAPIs)) {
1028 domain_blocking_enabled_ = false;
1029 }
1025 } 1030 }
1026 1031
1027 GpuDataManagerImplPrivate::~GpuDataManagerImplPrivate() { 1032 GpuDataManagerImplPrivate::~GpuDataManagerImplPrivate() {
1028 #if defined(OS_MACOSX) 1033 #if defined(OS_MACOSX)
1029 CGDisplayRemoveReconfigurationCallback(DisplayReconfigCallback, owner_); 1034 CGDisplayRemoveReconfigurationCallback(DisplayReconfigCallback, owner_);
1030 #endif 1035 #endif
1031 } 1036 }
1032 1037
1033 void GpuDataManagerImplPrivate::InitializeImpl( 1038 void GpuDataManagerImplPrivate::InitializeImpl(
1034 const std::string& gpu_blacklist_json, 1039 const std::string& gpu_blacklist_json,
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 1262
1258 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() { 1263 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() {
1259 gpu_process_accessible_ = false; 1264 gpu_process_accessible_ = false;
1260 gpu_info_.finalized = true; 1265 gpu_info_.finalized = true;
1261 complete_gpu_info_already_requested_ = true; 1266 complete_gpu_info_already_requested_ = true;
1262 // Some observers might be waiting. 1267 // Some observers might be waiting.
1263 NotifyGpuInfoUpdate(); 1268 NotifyGpuInfoUpdate();
1264 } 1269 }
1265 1270
1266 } // namespace content 1271 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_url_handler_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698