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

Side by Side Diff: chrome/browser/gpu/chrome_gpu_util.cc

Issue 23703017: Enable GPU control lists in tests on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more detailed logging Created 7 years, 3 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 | « no previous file | chrome/test/base/test_launcher_utils.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 "chrome/browser/gpu/chrome_gpu_util.h" 5 #include "chrome/browser/gpu/chrome_gpu_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #endif 10 #endif
(...skipping 22 matching lines...) Expand all
33 if (trial) 33 if (trial)
34 trial->Disable(); 34 trial->Disable();
35 } 35 }
36 36
37 bool ShouldRunCompositingFieldTrial() { 37 bool ShouldRunCompositingFieldTrial() {
38 // Enable the field trial only on desktop OS's. 38 // Enable the field trial only on desktop OS's.
39 #if !(defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)) 39 #if !(defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX))
40 return false; 40 return false;
41 #endif 41 #endif
42 42
43 // Necessary for linux_chromeos build since it defines both OS_LINUX
44 // and OS_CHROMEOS.
45 #if defined(OS_CHROMEOS)
46 return false;
47 #endif
piman 2013/09/20 21:27:35 We don't want to run GPU field trials on Chrome OS
gab 2013/09/21 03:40:09 Right, but we never make it to the field trial cod
gab 2013/09/23 21:07:52 As per offline discussion, I'll leave the OS_CHROM
48
49 #if defined(OS_WIN)
50 // Don't run the trial on Windows XP.
51 if (base::win::GetVersion() < base::win::VERSION_VISTA)
52 return false;
53 #endif
54
55 #if defined(OS_MACOSX)
56 // Browser and content shell tests hang on 10.7 when the Apple software
57 // renderer is used. These tests ignore the blacklist (which disables
58 // compositing both on 10.7 and when the Apple software renderer is used)
59 // by specifying the kSkipGpuDataLoading switch, so disable forced
60 // compositing here based on the switch and OS version.
61 // http://crbug.com/230931
62 if (base::mac::IsOSLion() &&
63 CommandLine::ForCurrentProcess()->HasSwitch(
64 switches::kSkipGpuDataLoading)) {
65 return false;
66 }
67 #endif
68
69 // Don't activate the field trial if force-compositing-mode has been 43 // Don't activate the field trial if force-compositing-mode has been
70 // explicitly disabled from the command line. 44 // explicitly disabled from the command line.
71 if (CommandLine::ForCurrentProcess()->HasSwitch( 45 if (CommandLine::ForCurrentProcess()->HasSwitch(
72 switches::kDisableForceCompositingMode) || 46 switches::kDisableForceCompositingMode) ||
73 CommandLine::ForCurrentProcess()->HasSwitch( 47 CommandLine::ForCurrentProcess()->HasSwitch(
74 switches::kDisableAcceleratedCompositing)) 48 switches::kDisableAcceleratedCompositing))
75 return false; 49 return false;
76 50
77 return true; 51 return true;
78 } 52 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 97
124 bool force_compositing = (trial->group() == force_compositing_group); 98 bool force_compositing = (trial->group() == force_compositing_group);
125 bool thread = (trial->group() == thread_group); 99 bool thread = (trial->group() == thread_group);
126 UMA_HISTOGRAM_BOOLEAN("GPU.InForceCompositingModeFieldTrial", 100 UMA_HISTOGRAM_BOOLEAN("GPU.InForceCompositingModeFieldTrial",
127 force_compositing); 101 force_compositing);
128 UMA_HISTOGRAM_BOOLEAN("GPU.InCompositorThreadFieldTrial", thread); 102 UMA_HISTOGRAM_BOOLEAN("GPU.InCompositorThreadFieldTrial", thread);
129 } 103 }
130 104
131 } // namespace gpu_util 105 } // namespace gpu_util
132 106
OLDNEW
« no previous file with comments | « no previous file | chrome/test/base/test_launcher_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698