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

Side by Side Diff: ui/gl/gl_image_surface_texture.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_surface_texture.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_surface_texture.h" 5 #include "ui/gl/gl_image_surface_texture.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "ui/gl/android/surface_texture.h" 8 #include "ui/gl/android/surface_texture.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // This will attach the surface texture to the texture currently bound to 71 // This will attach the surface texture to the texture currently bound to
72 // GL_TEXTURE_EXTERNAL_OES target. 72 // GL_TEXTURE_EXTERNAL_OES target.
73 surface_texture_->AttachToGLContext(); 73 surface_texture_->AttachToGLContext();
74 texture_id_ = texture_id; 74 texture_id_ = texture_id;
75 } 75 }
76 76
77 surface_texture_->UpdateTexImage(); 77 surface_texture_->UpdateTexImage();
78 return true; 78 return true;
79 } 79 }
80 80
81 bool GLImageSurfaceTexture::CopyTexImage(unsigned target) { 81 bool GLImageSurfaceTexture::CopyTexSubImage(unsigned target,
82 const Point& offset,
83 const Rect& rect) {
82 return false; 84 return false;
83 } 85 }
84 86
85 bool GLImageSurfaceTexture::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 87 bool GLImageSurfaceTexture::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
86 int z_order, 88 int z_order,
87 OverlayTransform transform, 89 OverlayTransform transform,
88 const Rect& bounds_rect, 90 const Rect& bounds_rect,
89 const RectF& crop_rect) { 91 const RectF& crop_rect) {
90 return false; 92 return false;
91 } 93 }
92 94
93 } // namespace gfx 95 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_image_surface_texture.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698