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 <map> | 5 #include <map> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 printf("Test skipped: requires gpu. Pass --enable-gpu on the command " | 155 printf("Test skipped: requires gpu. Pass --enable-gpu on the command " |
156 "line if use of GPU is desired.\n"); | 156 "line if use of GPU is desired.\n"); |
157 return; | 157 return; |
158 } | 158 } |
159 | 159 |
160 // Verify flag combinations. | 160 // Verify flag combinations. |
161 ASSERT_TRUE(HasFlag(kUseGpu) || !HasFlag(kForceGpuComposited)); | 161 ASSERT_TRUE(HasFlag(kUseGpu) || !HasFlag(kForceGpuComposited)); |
162 ASSERT_TRUE(!HasFlag(kUseGpu) || IsGpuAvailable()); | 162 ASSERT_TRUE(!HasFlag(kUseGpu) || IsGpuAvailable()); |
163 | 163 |
164 base::FilePath test_path = GetDataPath(name); | 164 base::FilePath test_path = GetDataPath(name); |
165 ASSERT_TRUE(file_util::DirectoryExists(test_path)) | 165 ASSERT_TRUE(base::DirectoryExists(test_path)) |
166 << "Missing test directory: " << test_path.value(); | 166 << "Missing test directory: " << test_path.value(); |
167 | 167 |
168 test_path = test_path.Append(FILE_PATH_LITERAL("test.html")); | 168 test_path = test_path.Append(FILE_PATH_LITERAL("test.html")); |
169 | 169 |
170 scoped_refptr<TabProxy> tab(GetActiveTab()); | 170 scoped_refptr<TabProxy> tab(GetActiveTab()); |
171 ASSERT_TRUE(tab.get()); | 171 ASSERT_TRUE(tab.get()); |
172 | 172 |
173 // TODO(jbates): remove this check when ref builds are updated. | 173 // TODO(jbates): remove this check when ref builds are updated. |
174 if (!HasFlag(kUseReferenceBuild)) | 174 if (!HasFlag(kUseReferenceBuild)) |
175 ASSERT_TRUE(automation()->BeginTracing("test_gpu")); | 175 ASSERT_TRUE(automation()->BeginTracing("test_gpu")); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 kIsGpuCanvasTest | kInternal | kHasRedirect | kUseGpu | kDisableVsync, | 318 kIsGpuCanvasTest | kInternal | kHasRedirect | kUseGpu | kDisableVsync, |
319 kIsGpuCanvasTest | kUseReferenceBuild | kInternal | kHasRedirect | kUseGpu, | 319 kIsGpuCanvasTest | kUseReferenceBuild | kInternal | kHasRedirect | kUseGpu, |
320 kIsGpuCanvasTest | kUseReferenceBuild | kInternal | kHasRedirect | kUseGpu | | 320 kIsGpuCanvasTest | kUseReferenceBuild | kInternal | kHasRedirect | kUseGpu | |
321 kDisableVsync)); | 321 kDisableVsync)); |
322 | 322 |
323 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(fireflies) | 323 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(fireflies) |
324 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(FishIE) | 324 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(FishIE) |
325 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(speedreading) | 325 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(speedreading) |
326 | 326 |
327 } // namespace | 327 } // namespace |
OLD | NEW |