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

Unified Diff: trunk/src/cc/test/layer_tree_pixel_test.cc

Issue 149953003: Revert 247793 "Ensure GL initialization only happens once, and p..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | « trunk/src/cc/test/cc_test_suite.cc ('k') | trunk/src/cc/test/pixel_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/cc/test/layer_tree_pixel_test.cc
===================================================================
--- trunk/src/cc/test/layer_tree_pixel_test.cc (revision 247809)
+++ trunk/src/cc/test/layer_tree_pixel_test.cc (working copy)
@@ -21,6 +21,7 @@
#include "cc/trees/layer_tree_impl.h"
#include "gpu/command_buffer/client/gl_in_process_context.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
+#include "ui/gl/gl_implementation.h"
using gpu::gles2::GLES2Interface;
@@ -54,6 +55,8 @@
case GL_WITH_DEFAULT:
case GL_WITH_BITMAP: {
+ CHECK(gfx::InitializeStaticGLBindings(gfx::kGLImplementationOSMesaGL));
+
output_surface = make_scoped_ptr(
new PixelTestOutputSurface(new TestInProcessContextProvider));
break;
@@ -313,6 +316,8 @@
DCHECK_GT(bitmap.width(), 0);
DCHECK_GT(bitmap.height(), 0);
+ CHECK(gfx::InitializeStaticGLBindings(gfx::kGLImplementationOSMesaGL));
+
scoped_ptr<gpu::GLInProcessContext> context = CreateTestInProcessContext();
GLES2Interface* gl = context->GetImplementation();
« no previous file with comments | « trunk/src/cc/test/cc_test_suite.cc ('k') | trunk/src/cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698