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

Unified Diff: webkit/tools/test_shell/test_shell.cc

Issue 3440029: test_shell command line switch enable-accelerated-compositing added (Closed)
Patch Set: Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/test_shell.h ('k') | webkit/tools/test_shell/test_shell_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell.cc
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc
index 06cba1784cd4fbf9c1b638304cd8a15bfc5405a5..feb272e9778a54c25a99a9e16fec933fc81dd736 100644
--- a/webkit/tools/test_shell/test_shell.cc
+++ b/webkit/tools/test_shell/test_shell.cc
@@ -115,6 +115,7 @@ int TestShell::file_test_timeout_ms_ = kDefaultFileTestTimeoutMillisecs;
bool TestShell::test_is_preparing_ = false;
bool TestShell::test_is_pending_ = false;
bool TestShell::accelerated_2d_canvas_enabled_ = false;
+bool TestShell::accelerated_compositing_enabled_ = false;
TestShell::TestShell()
: m_mainWnd(NULL),
@@ -450,6 +451,11 @@ void TestShell::SetAccelerated2dCanvasEnabled(bool enabled) {
}
// static
+void TestShell::SetAcceleratedCompositingEnabled(bool enabled) {
+ accelerated_compositing_enabled_ = enabled;
+}
+
+// static
void TestShell::ResetWebPreferences() {
DCHECK(web_prefs_);
@@ -513,7 +519,8 @@ void TestShell::ResetWebPreferences() {
web_prefs_->tabs_to_links = false;
web_prefs_->accelerated_2d_canvas_enabled =
accelerated_2d_canvas_enabled_;
-
+ web_prefs_->accelerated_compositing_enabled =
+ accelerated_compositing_enabled_;
// Allow those layout tests running as local files, i.e. under
// LayoutTests/http/tests/local, to access http server.
if (layout_test_mode_)
« no previous file with comments | « webkit/tools/test_shell/test_shell.h ('k') | webkit/tools/test_shell/test_shell_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698