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

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

Issue 135213003: Ensure GL initialization only happens once, and provide common init path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initgl: Created 6 years, 11 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
Index: content/public/test/unittest_test_suite.cc
diff --git a/content/public/test/unittest_test_suite.cc b/content/public/test/unittest_test_suite.cc
index 934eb44b860c28c020ede27b3efbd746b045bec3..a721ebe14c70519ffd772cf1d121ea4b5f86a5ce 100644
--- a/content/public/test/unittest_test_suite.cc
+++ b/content/public/test/unittest_test_suite.cc
@@ -9,6 +9,7 @@
#include "base/test/test_suite.h"
#include "third_party/WebKit/public/platform/Platform.h"
#include "third_party/WebKit/public/web/WebKit.h"
+#include "ui/gl/gl_surface.h"
namespace content {
@@ -36,6 +37,8 @@ UnitTestTestSuite::UnitTestTestSuite(base::TestSuite* test_suite)
: test_suite_(test_suite) {
DCHECK(test_suite);
#if !defined(OS_IOS)
+ gfx::GLSurface::InitializeOneOffForTests();
+
webkit_platform_support_.reset(new UnitTestWebKitPlatformSupport);
blink::initialize(webkit_platform_support_.get());
#endif

Powered by Google App Engine
This is Rietveld 408576698