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

Side by Side Diff: ui/gl/gl_image_io_surface.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 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 io_surface_.get(), 57 io_surface_.get(),
58 0); 58 0);
59 if (cgl_error != kCGLNoError) { 59 if (cgl_error != kCGLNoError) {
60 LOG(ERROR) << "Error in CGLTexImageIOSurface2D"; 60 LOG(ERROR) << "Error in CGLTexImageIOSurface2D";
61 return false; 61 return false;
62 } 62 }
63 63
64 return true; 64 return true;
65 } 65 }
66 66
67 bool GLImageIOSurface::CopyTexImage(unsigned target) {
68 return false;
69 }
70
67 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 71 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
68 int z_order, 72 int z_order,
69 OverlayTransform transform, 73 OverlayTransform transform,
70 const Rect& bounds_rect, 74 const Rect& bounds_rect,
71 const RectF& crop_rect) { 75 const RectF& crop_rect) {
72 return false; 76 return false;
73 } 77 }
74 78
75 } // namespace gfx 79 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698