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

Side by Side Diff: ui/gl/gl_image_surface_texture.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
« ui/gl/gl_image.h ('K') | « 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // This will attach the surface texture to the texture currently bound to 65 // This will attach the surface texture to the texture currently bound to
66 // GL_TEXTURE_EXTERNAL_OES target. 66 // GL_TEXTURE_EXTERNAL_OES target.
67 surface_texture_->AttachToGLContext(); 67 surface_texture_->AttachToGLContext();
68 texture_id_ = texture_id; 68 texture_id_ = texture_id;
69 } 69 }
70 70
71 surface_texture_->UpdateTexImage(); 71 surface_texture_->UpdateTexImage();
72 return true; 72 return true;
73 } 73 }
74 74
75 bool GLImageSurfaceTexture::CopyTexImage(unsigned target) { 75 bool GLImageSurfaceTexture::CopyTexSubImage(unsigned target,
76 int xoffset,
77 int yoffset) {
76 return false; 78 return false;
77 } 79 }
78 80
79 bool GLImageSurfaceTexture::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 81 bool GLImageSurfaceTexture::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
80 int z_order, 82 int z_order,
81 OverlayTransform transform, 83 OverlayTransform transform,
82 const Rect& bounds_rect, 84 const Rect& bounds_rect,
83 const RectF& crop_rect) { 85 const RectF& crop_rect) {
84 return false; 86 return false;
85 } 87 }
86 88
87 } // namespace gfx 89 } // namespace gfx
OLDNEW
« ui/gl/gl_image.h ('K') | « 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