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

Unified Diff: ui/gl/gl_image_egl.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (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 | « ui/gl/gl_helper.cc ('k') | ui/gl/gl_image_glx.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_egl.cc
diff --git a/ui/gl/gl_image_egl.cc b/ui/gl/gl_image_egl.cc
index c130832375e4eb2d016e0cf97719ba709e776a8e..f85bcd686aefc4e06be02acf34c578a9baa4f620 100644
--- a/ui/gl/gl_image_egl.cc
+++ b/ui/gl/gl_image_egl.cc
@@ -22,11 +22,8 @@ bool GLImageEGL::Initialize(EGLenum target,
const EGLint* attrs) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK_EQ(EGL_NO_IMAGE_KHR, egl_image_);
- egl_image_ = eglCreateImageKHR(gfx::GLSurfaceEGL::GetHardwareDisplay(),
- EGL_NO_CONTEXT,
- target,
- buffer,
- attrs);
+ egl_image_ = eglCreateImageKHR(gl::GLSurfaceEGL::GetHardwareDisplay(),
+ EGL_NO_CONTEXT, target, buffer, attrs);
if (egl_image_ == EGL_NO_IMAGE_KHR) {
DLOG(ERROR) << "Error creating EGLImage: " << ui::GetLastEGLErrorString();
return false;
@@ -39,7 +36,7 @@ void GLImageEGL::Destroy(bool have_context) {
DCHECK(thread_checker_.CalledOnValidThread());
if (egl_image_ != EGL_NO_IMAGE_KHR) {
EGLBoolean result =
- eglDestroyImageKHR(gfx::GLSurfaceEGL::GetHardwareDisplay(), egl_image_);
+ eglDestroyImageKHR(gl::GLSurfaceEGL::GetHardwareDisplay(), egl_image_);
if (result == EGL_FALSE) {
DLOG(ERROR) << "Error destroying EGLImage: "
<< ui::GetLastEGLErrorString();
« no previous file with comments | « ui/gl/gl_helper.cc ('k') | ui/gl/gl_image_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698