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

Unified Diff: gpu/gles2_conform_support/egl/context.cc

Issue 1920163005: Split //ui/gl into //ui/gl + //ui/gi/init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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 | « gpu/config/gpu_info_collector.cc ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/context.cc
diff --git a/gpu/gles2_conform_support/egl/context.cc b/gpu/gles2_conform_support/egl/context.cc
index 8bdd48d8103f9afcde5c448e707504628d13cc88..9228efa27597a4d714b52933c00b678a463e51a3 100644
--- a/gpu/gles2_conform_support/egl/context.cc
+++ b/gpu/gles2_conform_support/egl/context.cc
@@ -19,6 +19,7 @@
#include "gpu/gles2_conform_support/egl/display.h"
#include "gpu/gles2_conform_support/egl/surface.h"
#include "gpu/gles2_conform_support/egl/thread_state.h"
+#include "ui/gl/init/gl_factory.h"
// The slight complexification in this file comes from following properties:
// 1) Command buffer connection (context) can not be established without a
@@ -271,8 +272,8 @@ bool Context::CreateService(gfx::GLSurface* gl_surface) {
decoder->set_engine(command_executor.get());
- scoped_refptr<gfx::GLContext> gl_context(gfx::GLContext::CreateGLContext(
- nullptr, gl_surface, gfx::PreferDiscreteGpu));
+ scoped_refptr<gfx::GLContext> gl_context(
+ gl::init::CreateGLContext(nullptr, gl_surface, gfx::PreferDiscreteGpu));
if (!gl_context)
return false;
« no previous file with comments | « gpu/config/gpu_info_collector.cc ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698