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 977853002: Reland of Revert of gpu: introduce glCopySubTextureCHROMIUM (patchset #1 id:1 of https://codereview… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply image optimization to CopySubTexture. move glValidateProgram Created 5 years, 9 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 "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 return true; 189 return true;
190 } 190 }
191 191
192 void GLImageGLX::ReleaseTexImage(unsigned target) { 192 void GLImageGLX::ReleaseTexImage(unsigned target) {
193 DCHECK_NE(0u, glx_pixmap_); 193 DCHECK_NE(0u, glx_pixmap_);
194 DCHECK_EQ(static_cast<GLenum>(GL_TEXTURE_2D), target); 194 DCHECK_EQ(static_cast<GLenum>(GL_TEXTURE_2D), target);
195 195
196 glXReleaseTexImageEXT(gfx::GetXDisplay(), glx_pixmap_, GLX_FRONT_LEFT_EXT); 196 glXReleaseTexImageEXT(gfx::GetXDisplay(), glx_pixmap_, GLX_FRONT_LEFT_EXT);
197 } 197 }
198 198
199 bool GLImageGLX::CopyTexImage(unsigned target) { 199 bool GLImageGLX::CopyTexSubImage(unsigned target, int xoffset, int yoffset) {
200 return false; 200 return false;
201 } 201 }
202 202
203 bool GLImageGLX::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 203 bool GLImageGLX::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
204 int z_order, 204 int z_order,
205 OverlayTransform transform, 205 OverlayTransform transform,
206 const Rect& bounds_rect, 206 const Rect& bounds_rect,
207 const RectF& crop_rect) { 207 const RectF& crop_rect) {
208 return false; 208 return false;
209 } 209 }
210 210
211 } // namespace gfx 211 } // namespace gfx
OLDNEW
« ui/gl/gl_image.h ('K') | « ui/gl/gl_image_glx.h ('k') | ui/gl/gl_image_io_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698