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

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

Issue 536353002: gpu: Add CopyTexImage function to GLImage API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep support for binding images to multiple textures Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 extern "C" { 5 extern "C" {
6 #include <X11/Xlib.h> 6 #include <X11/Xlib.h>
7 } 7 }
8 8
9 #include "ui/gl/gl_image_glx.h" 9 #include "ui/gl/gl_image_glx.h"
10 10
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 return true; 183 return true;
184 } 184 }
185 185
186 void GLImageGLX::ReleaseTexImage(unsigned target) { 186 void GLImageGLX::ReleaseTexImage(unsigned target) {
187 DCHECK_NE(0u, glx_pixmap_); 187 DCHECK_NE(0u, glx_pixmap_);
188 DCHECK_EQ(static_cast<GLenum>(GL_TEXTURE_2D), target); 188 DCHECK_EQ(static_cast<GLenum>(GL_TEXTURE_2D), target);
189 189
190 glXReleaseTexImageEXT(gfx::GetXDisplay(), glx_pixmap_, GLX_FRONT_LEFT_EXT); 190 glXReleaseTexImageEXT(gfx::GetXDisplay(), glx_pixmap_, GLX_FRONT_LEFT_EXT);
191 } 191 }
192 192
193 bool GLImageGLX::CopyTexImage(unsigned target) {
194 return false;
195 }
196
193 bool GLImageGLX::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 197 bool GLImageGLX::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
194 int z_order, 198 int z_order,
195 OverlayTransform transform, 199 OverlayTransform transform,
196 const Rect& bounds_rect, 200 const Rect& bounds_rect,
197 const RectF& crop_rect) { 201 const RectF& crop_rect) {
198 return false; 202 return false;
199 } 203 }
200 204
201 } // namespace gfx 205 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698