Chromium Code Reviews| Index: chrome/test/unit/chrome_test_suite.cc |
| diff --git a/chrome/test/unit/chrome_test_suite.cc b/chrome/test/unit/chrome_test_suite.cc |
| index f3e033533c71c3d48a0dc36b0d982b2bf5176afe..0c062caa36383ef7bba70ede30a4ffbe138992f5 100644 |
| --- a/chrome/test/unit/chrome_test_suite.cc |
| +++ b/chrome/test/unit/chrome_test_suite.cc |
| @@ -21,6 +21,7 @@ |
| #include "net/base/net_errors.h" |
| #include "ui/base/resource/resource_bundle.h" |
| #include "ui/base/ui_base_paths.h" |
| +#include "views/view.h" |
|
sky
2011/06/07 23:21:20
Only include this if TOOLKIT_VIEWS is set.
wjmaclean
2011/06/08 13:24:03
Done.
|
| #if defined(OS_MACOSX) |
| #include "base/mac/mac_util.h" |
| @@ -141,6 +142,9 @@ void ChromeTestSuite::Initialize() { |
| RemoveSharedMemoryFile(stats_filename_); |
| stats_table_ = new base::StatsTable(stats_filename_, 20, 200); |
| base::StatsTable::set_current(stats_table_); |
| + |
| + // Turn of GPU compositing in browser during unit tests. |
| + views::View::set_use_acceleration_when_possible(false); |
|
sky
2011/06/07 23:21:20
Only do this if TOUCH_UI.
wjmaclean
2011/06/08 13:24:03
Done.
Although, I'm not sure why it isn't TOOLKIT
|
| } |
| void ChromeTestSuite::Shutdown() { |