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

Unified Diff: cc/test/cc_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
« no previous file with comments | « no previous file | cc/test/layer_tree_pixel_test.cc » ('j') | ui/compositor/test/default_context_factory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/cc_test_suite.cc
diff --git a/cc/test/cc_test_suite.cc b/cc/test/cc_test_suite.cc
index 8b3228a03cd9563ac4d29c4a86428d8124e9d83c..537b3be2955e77fc20cdc1f0a0cb1783e450d6fc 100644
--- a/cc/test/cc_test_suite.cc
+++ b/cc/test/cc_test_suite.cc
@@ -11,6 +11,7 @@
#include "base/threading/thread_id_name_manager.h"
#include "cc/base/switches.h"
#include "cc/test/paths.h"
+#include "ui/gl/gl_surface.h"
namespace cc {
@@ -21,6 +22,7 @@ CCTestSuite::~CCTestSuite() {}
void CCTestSuite::Initialize() {
base::TestSuite::Initialize();
+ gfx::GLSurface::InitializeOneOffForTests();
CCPaths::RegisterPathProvider();
message_loop_.reset(new base::MessageLoop);
« no previous file with comments | « no previous file | cc/test/layer_tree_pixel_test.cc » ('j') | ui/compositor/test/default_context_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698