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

Side by Side Diff: chrome/test/gpu/gpu_feature_browsertest.cc

Issue 11886005: Fix GpuChannelHost destruction races. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stupid ios Created 7 years, 11 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 | content/browser/browser_main_loop.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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/test/trace_event_analyzer.h" 10 #include "base/test/trace_event_analyzer.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 " \"blacklist\": [\n" 207 " \"blacklist\": [\n"
208 " \"accelerated_compositing\"\n" 208 " \"accelerated_compositing\"\n"
209 " ]\n" 209 " ]\n"
210 " }\n" 210 " }\n"
211 " ]\n" 211 " ]\n"
212 "}"; 212 "}";
213 SetupBlacklist(json_blacklist); 213 SetupBlacklist(json_blacklist);
214 } 214 }
215 }; 215 };
216 216
217 #if (defined(OS_WIN) && defined(USE_AURA)) || defined(OS_CHROMEOS) 217 #if (defined(OS_WIN) && defined(USE_AURA))
218 // Compositing is always on for Windows Aura. 218 // Compositing is always on for Windows Aura.
219 // Disabled on chrome os due to http://crbug.com/167806
220 #define MAYBE_AcceleratedCompositingBlocked DISABLED_AcceleratedCompositingBlock ed 219 #define MAYBE_AcceleratedCompositingBlocked DISABLED_AcceleratedCompositingBlock ed
221 #else 220 #else
222 #define MAYBE_AcceleratedCompositingBlocked AcceleratedCompositingBlocked 221 #define MAYBE_AcceleratedCompositingBlocked AcceleratedCompositingBlocked
223 #endif 222 #endif
224 223
225 IN_PROC_BROWSER_TEST_F(AcceleratedCompositingBlockedTest, 224 IN_PROC_BROWSER_TEST_F(AcceleratedCompositingBlockedTest,
226 MAYBE_AcceleratedCompositingBlocked) { 225 MAYBE_AcceleratedCompositingBlocked) {
227 GpuFeatureType type = 226 GpuFeatureType type =
228 GpuDataManager::GetInstance()->GetBlacklistedFeatures(); 227 GpuDataManager::GetInstance()->GetBlacklistedFeatures();
229 type = IgnoreGpuFeatures(type); 228 type = IgnoreGpuFeatures(type);
(...skipping 25 matching lines...) Expand all
255 const FilePath url(FILE_PATH_LITERAL("feature_compositing.html")); 254 const FilePath url(FILE_PATH_LITERAL("feature_compositing.html"));
256 RunEventTest(url, kSwapBuffersEvent, false); 255 RunEventTest(url, kSwapBuffersEvent, false);
257 } 256 }
258 257
259 // Flaky on ChromeOS, http://crbug.com/168972 258 // Flaky on ChromeOS, http://crbug.com/168972
260 #if defined(OS_CHROMEOS) 259 #if defined(OS_CHROMEOS)
261 #define MAYBE_WebGLAllowed DISABLED_WebGLAllowed 260 #define MAYBE_WebGLAllowed DISABLED_WebGLAllowed
262 #else 261 #else
263 #define MAYBE_WebGLAllowed WebGLAllowed 262 #define MAYBE_WebGLAllowed WebGLAllowed
264 #endif 263 #endif
265 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, MAYBE_WebGLAllowed) { 264 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, MAYBE_WebGLAllowed) {
ncarter (slow) 2013/01/12 00:11:08 Should fix this too.
266 GpuFeatureType type = 265 GpuFeatureType type =
267 GpuDataManager::GetInstance()->GetBlacklistedFeatures(); 266 GpuDataManager::GetInstance()->GetBlacklistedFeatures();
268 EXPECT_EQ(type, 0); 267 EXPECT_EQ(type, 0);
269 268
270 const FilePath url(FILE_PATH_LITERAL("feature_webgl.html")); 269 const FilePath url(FILE_PATH_LITERAL("feature_webgl.html"));
271 RunEventTest(url, kWebGLCreationEvent, true); 270 RunEventTest(url, kWebGLCreationEvent, true);
272 } 271 }
273 272
274 // Flaky on ChromeOS, http://crbug.com/168972 273 // Flaky on ChromeOS, http://crbug.com/168972
275 #if defined(OS_CHROMEOS) 274 #if defined(OS_CHROMEOS)
276 #define MAYBE_WebGLBlocked DISABLED_WebGLBlocked 275 #define MAYBE_WebGLBlocked DISABLED_WebGLBlocked
277 #else 276 #else
278 #define MAYBE_WebGLBlocked WebGLBlocked 277 #define MAYBE_WebGLBlocked WebGLBlocked
279 #endif 278 #endif
280 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, MAYBE_WebGLBlocked) { 279 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, MAYBE_WebGLBlocked) {
ncarter (slow) 2013/01/12 00:11:08 And this.
281 const std::string json_blacklist = 280 const std::string json_blacklist =
282 "{\n" 281 "{\n"
283 " \"name\": \"gpu blacklist\",\n" 282 " \"name\": \"gpu blacklist\",\n"
284 " \"version\": \"1.0\",\n" 283 " \"version\": \"1.0\",\n"
285 " \"entries\": [\n" 284 " \"entries\": [\n"
286 " {\n" 285 " {\n"
287 " \"id\": 1,\n" 286 " \"id\": 1,\n"
288 " \"blacklist\": [\n" 287 " \"blacklist\": [\n"
289 " \"webgl\"\n" 288 " \"webgl\"\n"
290 " ]\n" 289 " ]\n"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 377
379 IN_PROC_BROWSER_TEST_F(WebGLMultisamplingTest, MultisamplingDisabled) { 378 IN_PROC_BROWSER_TEST_F(WebGLMultisamplingTest, MultisamplingDisabled) {
380 // Multisampling fails on virtualized mac os. 379 // Multisampling fails on virtualized mac os.
381 if (GPUTestBotConfig::CurrentConfigMatches("MAC VMWARE")) 380 if (GPUTestBotConfig::CurrentConfigMatches("MAC VMWARE"))
382 return; 381 return;
383 382
384 const FilePath url(FILE_PATH_LITERAL("feature_multisampling.html")); 383 const FilePath url(FILE_PATH_LITERAL("feature_multisampling.html"));
385 RunTest(url, "\"FALSE\"", true); 384 RunTest(url, "\"FALSE\"", true);
386 } 385 }
387 386
388 #if defined(OS_LINUX) 387 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, Canvas2DAllowed) {
389 #define MAYBE_Canvas2DAllowed DISABLED_Canvas2DAllowed
390 #else
391 #define MAYBE_Canvas2DAllowed Canvas2DAllowed
392 #endif
393 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, MAYBE_Canvas2DAllowed) {
394 // Accelerated canvas 2D is not supported on XP. 388 // Accelerated canvas 2D is not supported on XP.
395 if (GPUTestBotConfig::CurrentConfigMatches("XP")) 389 if (GPUTestBotConfig::CurrentConfigMatches("XP"))
396 return; 390 return;
397 391
398 GpuFeatureType type = 392 GpuFeatureType type =
399 GpuDataManager::GetInstance()->GetBlacklistedFeatures(); 393 GpuDataManager::GetInstance()->GetBlacklistedFeatures();
400 EXPECT_EQ(type, 0); 394 EXPECT_EQ(type, 0);
401 395
402 const FilePath url(FILE_PATH_LITERAL("feature_canvas2d.html")); 396 const FilePath url(FILE_PATH_LITERAL("feature_canvas2d.html"));
403 RunEventTest(url, kAcceleratedCanvasCreationEvent, true); 397 RunEventTest(url, kAcceleratedCanvasCreationEvent, true);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 base::StringPrintf( 573 base::StringPrintf(
580 "%d (resize offset %d): IOSurface width %d -> %d; Creates %d " 574 "%d (resize offset %d): IOSurface width %d -> %d; Creates %d "
581 "Expected %d", offset_i, offsets[offset_i], 575 "Expected %d", offset_i, offsets[offset_i],
582 old_width, new_width, num_creates, expected_creates); 576 old_width, new_width, num_creates, expected_creates);
583 } 577 }
584 } 578 }
585 } 579 }
586 #endif 580 #endif
587 581
588 } // namespace anonymous 582 } // namespace anonymous
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698