| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gl/gl_image_egl.h" | 5 #include "ui/gl/gl_image_egl.h" |
| 6 | 6 |
| 7 #include "ui/gl/egl_util.h" | 7 #include "ui/gl/egl_util.h" |
| 8 #include "ui/gl/gl_surface_egl.h" | 8 #include "ui/gl/gl_surface_egl.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 unsigned GLImageEGL::GetInternalFormat() { return GL_RGBA; } | 54 unsigned GLImageEGL::GetInternalFormat() { return GL_RGBA; } |
| 55 | 55 |
| 56 bool GLImageEGL::BindTexImage(unsigned target) { | 56 bool GLImageEGL::BindTexImage(unsigned target) { |
| 57 DCHECK(thread_checker_.CalledOnValidThread()); | 57 DCHECK(thread_checker_.CalledOnValidThread()); |
| 58 DCHECK_NE(EGL_NO_IMAGE_KHR, egl_image_); | 58 DCHECK_NE(EGL_NO_IMAGE_KHR, egl_image_); |
| 59 glEGLImageTargetTexture2DOES(target, egl_image_); | 59 glEGLImageTargetTexture2DOES(target, egl_image_); |
| 60 DCHECK_EQ(static_cast<GLenum>(GL_NO_ERROR), glGetError()); | 60 DCHECK_EQ(static_cast<GLenum>(GL_NO_ERROR), glGetError()); |
| 61 return true; | 61 return true; |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool GLImageEGL::CopyTexImage(unsigned target) { | 64 bool GLImageEGL::CopyTexSubImage(unsigned target, |
| 65 const Point& offset, |
| 66 const Rect& rect) { |
| 65 return false; | 67 return false; |
| 66 } | 68 } |
| 67 | 69 |
| 68 bool GLImageEGL::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 70 bool GLImageEGL::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 69 int z_order, | 71 int z_order, |
| 70 OverlayTransform transform, | 72 OverlayTransform transform, |
| 71 const Rect& bounds_rect, | 73 const Rect& bounds_rect, |
| 72 const RectF& crop_rect) { | 74 const RectF& crop_rect) { |
| 73 return false; | 75 return false; |
| 74 } | 76 } |
| 75 | 77 |
| 76 } // namespace gfx | 78 } // namespace gfx |
| OLD | NEW |