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

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

Issue 9581006: Revert 124562 - Add basic threaded compositor test to gpu_feature_browsertest.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | no next file » | 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/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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698