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

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