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

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

Issue 1152693002: ui: Add sub region copy support to GLImage::CopyTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « ui/gl/gl_image_io_surface.h ('k') | ui/gl/gl_image_memory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_io_surface.h" 5 #include "ui/gl/gl_image_io_surface.h"
6 6
7 #include "ui/gl/gl_bindings.h" 7 #include "ui/gl/gl_bindings.h"
8 #include "ui/gl/gl_context.h" 8 #include "ui/gl/gl_context.h"
9 9
10 // Note that this must be included after gl_bindings.h to avoid conflicts. 10 // Note that this must be included after gl_bindings.h to avoid conflicts.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 size_.width(), size_.height(), DataFormat(format_), 170 size_.width(), size_.height(), DataFormat(format_),
171 DataType(format_), io_surface_.get(), 0); 171 DataType(format_), io_surface_.get(), 0);
172 if (cgl_error != kCGLNoError) { 172 if (cgl_error != kCGLNoError) {
173 LOG(ERROR) << "Error in CGLTexImageIOSurface2D"; 173 LOG(ERROR) << "Error in CGLTexImageIOSurface2D";
174 return false; 174 return false;
175 } 175 }
176 176
177 return true; 177 return true;
178 } 178 }
179 179
180 bool GLImageIOSurface::CopyTexImage(unsigned target) { 180 bool GLImageIOSurface::CopyTexSubImage(unsigned target,
181 const Point& offset,
182 const Rect& rect) {
181 return false; 183 return false;
182 } 184 }
183 185
184 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 186 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
185 int z_order, 187 int z_order,
186 OverlayTransform transform, 188 OverlayTransform transform,
187 const Rect& bounds_rect, 189 const Rect& bounds_rect,
188 const RectF& crop_rect) { 190 const RectF& crop_rect) {
189 return false; 191 return false;
190 } 192 }
191 193
192 } // namespace gfx 194 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_image_io_surface.h ('k') | ui/gl/gl_image_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698