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 "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/test/trace_event_analyzer.h" | 9 #include "base/test/trace_event_analyzer.h" |
10 #include "base/version.h" | 10 #include "base/version.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 CanOpenPopupAndRenderWithWebGLCanvas) { | 316 CanOpenPopupAndRenderWithWebGLCanvas) { |
317 const FilePath url(FILE_PATH_LITERAL("webgl_popup.html")); | 317 const FilePath url(FILE_PATH_LITERAL("webgl_popup.html")); |
318 RunTest(url, "\"SUCCESS\"", false); | 318 RunTest(url, "\"SUCCESS\"", false); |
319 } | 319 } |
320 | 320 |
321 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, CanOpenPopupAndRenderWith2DCanvas) { | 321 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, CanOpenPopupAndRenderWith2DCanvas) { |
322 const FilePath url(FILE_PATH_LITERAL("canvas_popup.html")); | 322 const FilePath url(FILE_PATH_LITERAL("canvas_popup.html")); |
323 RunTest(url, "\"SUCCESS\"", false); | 323 RunTest(url, "\"SUCCESS\"", false); |
324 } | 324 } |
325 | 325 |
326 class ThreadedCompositorTest : public GpuFeatureTest { | |
327 public: | |
328 virtual void SetUpCommandLine(CommandLine* command_line) { | |
329 GpuFeatureTest::SetUpCommandLine(command_line); | |
330 command_line->AppendSwitch(switches::kEnableThreadedCompositing); | |
331 } | |
332 }; | |
333 | |
334 #if defined(OS_CHROMEOS) | |
335 // crbug.com/116438 | |
336 #define MAYBE_ThreadedCompositor DISABLED_ThreadedCompositor | |
337 #else | |
338 #define MAYBE_ThreadedCompositor ThreadedCompositor | |
339 #endif | |
340 IN_PROC_BROWSER_TEST_F(ThreadedCompositorTest, MAYBE_ThreadedCompositor) { | |
341 const FilePath url(FILE_PATH_LITERAL("feature_compositing.html")); | |
342 RunTest(url, EXPECT_GPU_SWAP_BUFFERS); | |
343 } | |
344 | |
345 } // namespace anonymous | 326 } // namespace anonymous |
346 | 327 |
OLD | NEW |