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

Unified Diff: gpu/gles2_conform_support/egl/display.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/gles2_conform_support/egl/context.cc ('k') | gpu/gles2_conform_support/egl/thread_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/display.cc
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc
index b4e01587fd4144d0272380f49a9b153802849211..f80820f6091d8118b002f0106d8622e15edceeab 100644
--- a/gpu/gles2_conform_support/egl/display.cc
+++ b/gpu/gles2_conform_support/egl/display.cc
@@ -8,6 +8,7 @@
#include "gpu/gles2_conform_support/egl/context.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"
namespace egl {
@@ -178,8 +179,7 @@ EGLSurface Display::DoCreatePbufferSurface(ThreadState* ts,
EGLint height) {
lock_.AssertAcquired();
scoped_refptr<gfx::GLSurface> gl_surface;
- gl_surface =
- gfx::GLSurface::CreateOffscreenGLSurface(gfx::Size(width, height));
+ gl_surface = gl::init::CreateOffscreenGLSurface(gfx::Size(width, height));
if (!gl_surface)
return ts->ReturnError(EGL_BAD_ALLOC, nullptr);
surfaces_.emplace_back(new Surface(gl_surface.get(), config));
@@ -214,7 +214,7 @@ EGLSurface Display::CreateWindowSurface(ThreadState* ts,
return result;
}
scoped_refptr<gfx::GLSurface> gl_surface;
- gl_surface = gfx::GLSurface::CreateViewGLSurface(win);
+ gl_surface = gl::init::CreateViewGLSurface(win);
if (!gl_surface)
return ts->ReturnError(EGL_BAD_ALLOC, EGL_NO_SURFACE);
surfaces_.emplace_back(new Surface(gl_surface.get(), config));
« no previous file with comments | « gpu/gles2_conform_support/egl/context.cc ('k') | gpu/gles2_conform_support/egl/thread_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698