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

Unified Diff: trunk/src/gpu/tools/compositor_model_bench/compositor_model_bench.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
Index: trunk/src/gpu/tools/compositor_model_bench/compositor_model_bench.cc
===================================================================
--- trunk/src/gpu/tools/compositor_model_bench/compositor_model_bench.cc (revision 247809)
+++ trunk/src/gpu/tools/compositor_model_bench/compositor_model_bench.cc (working copy)
@@ -31,11 +31,12 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/time/time.h"
+
#include "gpu/tools/compositor_model_bench/render_model_utils.h"
#include "gpu/tools/compositor_model_bench/render_models.h"
#include "gpu/tools/compositor_model_bench/render_tree.h"
-#include "ui/gl/gl_surface.h"
+
using base::TimeTicks;
using base::DirectoryExists;
using base::PathExists;
@@ -185,8 +186,8 @@
// Initialize the OpenGL context.
bool InitGLContext() {
- if (!gfx::GLSurface::InitializeOneOff()) {
- LOG(FATAL) << "gfx::GLSurface::InitializeOneOff failed";
+ if (!InitializeStaticGLBindings(gfx::kGLImplementationDesktopGL)) {
+ LOG(FATAL) << "InitializeStaticGLBindings failed";
return false;
}
« no previous file with comments | « trunk/src/gpu/config/gpu_info_collector_unittest.cc ('k') | trunk/src/media/tools/player_x11/gl_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698