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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/gpu/gpu_data_manager_impl_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index 513a1d5d836f8434f3bf15c8f9cabc6a09fb8efb..edbb3aa35f1c802f21dfc1f9986575603cf95983 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -1022,6 +1022,12 @@ GpuDataManagerImplPrivate::GpuDataManagerImplPrivate(
CGGetActiveDisplayList (0, NULL, &display_count_);
CGDisplayRegisterReconfigurationCallback(DisplayReconfigCallback, owner_);
#endif // OS_MACOSX
+
+ // For testing only.
+ if (command_line->HasSwitch(
+ switches::kDisableDomainBlockingFor3DAPIsForTesting)) {
+ domain_blocking_enabled_ = false;
+ }
}
GpuDataManagerImplPrivate::~GpuDataManagerImplPrivate() {

Powered by Google App Engine
This is Rietveld 408576698