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

Side by Side Diff: ui/gl/gl_image_surface_texture.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 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/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "ui/gl/android/surface_texture.h" 8 #include "ui/gl/android/surface_texture.h"
9 #include "ui/gl/android/surface_texture_tracker.h" 9 #include "ui/gl/android/surface_texture_tracker.h"
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // This will attach the surface texture to the texture currently bound to 70 // This will attach the surface texture to the texture currently bound to
71 // GL_TEXTURE_EXTERNAL_OES target. 71 // GL_TEXTURE_EXTERNAL_OES target.
72 surface_texture_->AttachToGLContext(); 72 surface_texture_->AttachToGLContext();
73 texture_id_ = texture_id; 73 texture_id_ = texture_id;
74 } 74 }
75 75
76 surface_texture_->UpdateTexImage(); 76 surface_texture_->UpdateTexImage();
77 return true; 77 return true;
78 } 78 }
79 79
80 bool GLImageSurfaceTexture::CopyTexImage(unsigned target) {
81 return false;
82 }
83
80 bool GLImageSurfaceTexture::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 84 bool GLImageSurfaceTexture::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
81 int z_order, 85 int z_order,
82 OverlayTransform transform, 86 OverlayTransform transform,
83 const Rect& bounds_rect, 87 const Rect& bounds_rect,
84 const RectF& crop_rect) { 88 const RectF& crop_rect) {
85 return false; 89 return false;
86 } 90 }
87 91
88 } // namespace gfx 92 } // namespace gfx
OLDNEW
« gpu/command_buffer/service/texture_definition.cc ('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