| 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();
|
|
|