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

Unified Diff: content/public/test/browser_test_base.cc

Issue 120313002: Use stub GL draw/clear calls for browser tests that do not need pixels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
Index: content/public/test/browser_test_base.cc
diff --git a/content/public/test/browser_test_base.cc b/content/public/test/browser_test_base.cc
index a8733e4435b68f7d03b6fa915e795b7b647510df..60596a9df03fcc2de2095fcdc2bd68fac0e7662e 100644
--- a/content/public/test/browser_test_base.cc
+++ b/content/public/test/browser_test_base.cc
@@ -177,8 +177,7 @@ void BrowserTestBase::SetUp() {
// Use test contexts for browser tests unless they override and force us to
// use a real context.
if (allow_test_contexts_ && !use_software_compositing_) {
- content::ImageTransportFactory::InitializeForUnitTests(
- scoped_ptr<ui::ContextFactory>(new ui::TestContextFactory));
+ command_line->AppendSwitch(switches::kDisableGLDrawingForTests);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698