| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_android_native_buffer.h" | 5 #include "ui/gl/gl_image_android_native_buffer.h" |
| 6 | 6 |
| 7 #include "ui/gl/gl_surface_egl.h" | 7 #include "ui/gl/gl_surface_egl.h" |
| 8 #include "ui/gl/scoped_binders.h" | 8 #include "ui/gl/scoped_binders.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 reinterpret_cast<EGLClientBuffer>(texture_id_for_unbind_), | 103 reinterpret_cast<EGLClientBuffer>(texture_id_for_unbind_), |
| 104 attrs); | 104 attrs); |
| 105 DCHECK_NE(EGL_NO_IMAGE_KHR, egl_image_for_unbind_) | 105 DCHECK_NE(EGL_NO_IMAGE_KHR, egl_image_for_unbind_) |
| 106 << "Error creating EGLImage: " << eglGetError(); | 106 << "Error creating EGLImage: " << eglGetError(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 glEGLImageTargetTexture2DOES(target_, egl_image_for_unbind_); | 109 glEGLImageTargetTexture2DOES(target_, egl_image_for_unbind_); |
| 110 DCHECK_EQ(static_cast<GLenum>(GL_NO_ERROR), glGetError()); | 110 DCHECK_EQ(static_cast<GLenum>(GL_NO_ERROR), glGetError()); |
| 111 } | 111 } |
| 112 | 112 |
| 113 bool GLImageAndroidNativeBuffer::ScheduleOverlayPlane( |
| 114 int z_order, |
| 115 OverlayTransform transform, |
| 116 const Rect& bounds_rect, |
| 117 const RectF& crop_rect) { |
| 118 return false; |
| 119 } |
| 120 |
| 113 void GLImageAndroidNativeBuffer::SetReleaseAfterUse() { | 121 void GLImageAndroidNativeBuffer::SetReleaseAfterUse() { |
| 114 release_after_use_ = true; | 122 release_after_use_ = true; |
| 115 } | 123 } |
| 116 | 124 |
| 117 } // namespace gfx | 125 } // namespace gfx |
| OLD | NEW |