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

Side by Side Diff: content/browser/gpu/compositor_util_browsertest.cc

Issue 22198004: Always enable FCM on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WinAura is always in THREADED mode Created 7 years, 4 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 | « content/browser/gpu/compositor_util.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/public/browser/compositor_util.h"
6 #include "content/test/content_browser_test.h"
7
8 #if defined(OS_WIN)
9 #include "base/win/windows_version.h"
10 #endif
11
12 namespace content {
13
14 typedef ContentBrowserTest CompositorUtilTest;
15
16 // Test that threaded compositing and FCM are in the expected mode on the bots
17 // for all platforms.
18 IN_PROC_BROWSER_TEST_F(CompositorUtilTest, CompositingModeAsExpected) {
gab 2013/08/06 18:47:07 Maybe this can be a unit test rather than a browse
19 enum CompositingMode {
20 DISABLED,
21 ENABLED,
22 THREADED,
23 } expected_mode = DISABLED;
24 #if defined(OS_CHROMEOS)
25 expected_mode = THREADED;
26 #elif defined(OS_WIN)
27 #if defined(USE_AURA)
28 // WinAura always uses threaded compositing.
29 expected_mode = THREADED;
30 #else // defined(USE_AURA)
31 if (base::win::GetVersion() >= base::win::VERSION_VISTA)
gab 2013/08/09 14:17:03 Actually this won't work because the blacklist is
gab 2013/08/13 21:05:24 So, should we change the bots to use the blacklist
32 expected_mode = ENABLED;
33 #endif // defined(USE_AURA)
34 #endif
35
36 EXPECT_EQ(expected_mode == ENABLED || expected_mode == THREADED,
37 IsForceCompositingModeEnabled());
38 EXPECT_EQ(expected_mode == THREADED, IsThreadedCompositingEnabled());
39 }
40
41 }
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698