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

Side by Side Diff: ui/gl/gl_image_android_native_buffer.cc

Issue 415283002: ui: Add ScheduleOverlayPlane API to GLImage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add gfx::AcceleratedWidget argument to GLImage::ScheduleOverlayPlane Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 gfx::AcceleratedWidget widget,
115 int z_order,
116 OverlayTransform transform,
117 const Rect& bounds_rect,
118 const RectF& crop_rect) {
119 return false;
120 }
121
113 void GLImageAndroidNativeBuffer::SetReleaseAfterUse() { 122 void GLImageAndroidNativeBuffer::SetReleaseAfterUse() {
114 release_after_use_ = true; 123 release_after_use_ = true;
115 } 124 }
116 125
117 } // namespace gfx 126 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698