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

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

Issue 238933009: Remove --disable-accelerated-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
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/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/test/trace_event_analyzer.h" 10 #include "base/test/trace_event_analyzer.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 IN_PROC_BROWSER_TEST_F(AcceleratedCompositingBlockedTest, 222 IN_PROC_BROWSER_TEST_F(AcceleratedCompositingBlockedTest,
223 MAYBE_AcceleratedCompositingBlocked) { 223 MAYBE_AcceleratedCompositingBlocked) {
224 EXPECT_TRUE(GpuDataManager::GetInstance()->IsFeatureBlacklisted( 224 EXPECT_TRUE(GpuDataManager::GetInstance()->IsFeatureBlacklisted(
225 gpu::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING)); 225 gpu::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING));
226 226
227 const base::FilePath url(FILE_PATH_LITERAL("feature_compositing.html")); 227 const base::FilePath url(FILE_PATH_LITERAL("feature_compositing.html"));
228 RunEventTest(url, kSwapBuffersEvent, false); 228 RunEventTest(url, kSwapBuffersEvent, false);
229 } 229 }
230 230
231 class AcceleratedCompositingTest : public GpuFeatureTest {
232 public:
233 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
234 GpuFeatureTest::SetUpCommandLine(command_line);
235 command_line->AppendSwitch(switches::kDisableAcceleratedCompositing);
236 }
237 };
238
239 #if defined(USE_AURA) || defined(OS_MACOSX)
240 // Compositing is always on for Aura and Mac.
241 #define MAYBE_AcceleratedCompositingDisabled DISABLED_AcceleratedCompositingDisa bled
242 #else
243 #define MAYBE_AcceleratedCompositingDisabled AcceleratedCompositingDisabled
244 #endif
245
246 IN_PROC_BROWSER_TEST_F(AcceleratedCompositingTest,
247 MAYBE_AcceleratedCompositingDisabled) {
248 // Compositing is always on for Windows Aura.
249 const base::FilePath url(FILE_PATH_LITERAL("feature_compositing.html"));
250 RunEventTest(url, kSwapBuffersEvent, false);
251 }
252
253 // Times out: http://crbug.com/166060 231 // Times out: http://crbug.com/166060
254 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, DISABLED_WebGLAllowed) { 232 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, DISABLED_WebGLAllowed) {
255 EXPECT_FALSE(GpuDataManager::GetInstance()->IsFeatureBlacklisted( 233 EXPECT_FALSE(GpuDataManager::GetInstance()->IsFeatureBlacklisted(
256 gpu::GPU_FEATURE_TYPE_WEBGL)); 234 gpu::GPU_FEATURE_TYPE_WEBGL));
257 235
258 const base::FilePath url(FILE_PATH_LITERAL("feature_webgl.html")); 236 const base::FilePath url(FILE_PATH_LITERAL("feature_webgl.html"));
259 RunEventTest(url, kWebGLCreationEvent, true); 237 RunEventTest(url, kWebGLCreationEvent, true);
260 } 238 }
261 239
262 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, WebGLBlocked) { 240 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, WebGLBlocked) {
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 "%d (resize offset %d): IOSurface width %d -> %d; Creates %d " 536 "%d (resize offset %d): IOSurface width %d -> %d; Creates %d "
559 "Expected %d", offset_i, offsets[offset_i], 537 "Expected %d", offset_i, offsets[offset_i],
560 old_width, new_width, num_creates, expected_creates); 538 old_width, new_width, num_creates, expected_creates);
561 } 539 }
562 } 540 }
563 LOG(INFO) << "finished test"; 541 LOG(INFO) << "finished test";
564 } 542 }
565 #endif 543 #endif
566 544
567 } // namespace 545 } // namespace
OLDNEW
« no previous file with comments | « chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc ('k') | content/browser/gpu/compositor_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698