OLD | NEW |
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 28 matching lines...) Expand all Loading... |
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 | 43 // Necessary for linux_chromeos build since it defines both OS_LINUX |
44 // and OS_CHROMEOS. | 44 // and OS_CHROMEOS. |
45 #if defined(OS_CHROMEOS) | 45 #if defined(OS_CHROMEOS) |
46 return false; | 46 return false; |
47 #endif | 47 #endif |
48 | 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 |
49 #if defined(OS_MACOSX) | 55 #if defined(OS_MACOSX) |
50 // Browser and content shell tests hang on 10.7 when the Apple software | 56 // Browser and content shell tests hang on 10.7 when the Apple software |
51 // renderer is used. These tests ignore the blacklist (which disables | 57 // renderer is used. These tests ignore the blacklist (which disables |
52 // compositing both on 10.7 and when the Apple software renderer is used) | 58 // compositing both on 10.7 and when the Apple software renderer is used) |
53 // by specifying the kSkipGpuDataLoading switch, so disable forced | 59 // by specifying the kSkipGpuDataLoading switch, so disable forced |
54 // compositing here based on the switch and OS version. | 60 // compositing here based on the switch and OS version. |
55 // http://crbug.com/230931 | 61 // http://crbug.com/230931 |
56 if (base::mac::IsOSLion() && | 62 if (base::mac::IsOSLion() && |
57 CommandLine::ForCurrentProcess()->HasSwitch( | 63 CommandLine::ForCurrentProcess()->HasSwitch( |
58 switches::kSkipGpuDataLoading)) { | 64 switches::kSkipGpuDataLoading)) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 123 |
118 bool force_compositing = (trial->group() == force_compositing_group); | 124 bool force_compositing = (trial->group() == force_compositing_group); |
119 bool thread = (trial->group() == thread_group); | 125 bool thread = (trial->group() == thread_group); |
120 UMA_HISTOGRAM_BOOLEAN("GPU.InForceCompositingModeFieldTrial", | 126 UMA_HISTOGRAM_BOOLEAN("GPU.InForceCompositingModeFieldTrial", |
121 force_compositing); | 127 force_compositing); |
122 UMA_HISTOGRAM_BOOLEAN("GPU.InCompositorThreadFieldTrial", thread); | 128 UMA_HISTOGRAM_BOOLEAN("GPU.InCompositorThreadFieldTrial", thread); |
123 } | 129 } |
124 | 130 |
125 } // namespace gpu_util | 131 } // namespace gpu_util |
126 | 132 |
OLD | NEW |