OLD | NEW |
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 Loading... |
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 |
OLD | NEW |