| OLD | NEW |
| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 size_.width(), size_.height(), DataFormat(format_), | 170 size_.width(), size_.height(), DataFormat(format_), |
| 171 DataType(format_), io_surface_.get(), 0); | 171 DataType(format_), io_surface_.get(), 0); |
| 172 if (cgl_error != kCGLNoError) { | 172 if (cgl_error != kCGLNoError) { |
| 173 LOG(ERROR) << "Error in CGLTexImageIOSurface2D"; | 173 LOG(ERROR) << "Error in CGLTexImageIOSurface2D"; |
| 174 return false; | 174 return false; |
| 175 } | 175 } |
| 176 | 176 |
| 177 return true; | 177 return true; |
| 178 } | 178 } |
| 179 | 179 |
| 180 bool GLImageIOSurface::CopyTexImage(unsigned target) { | 180 bool GLImageIOSurface::CopyTexSubImage(unsigned target, |
| 181 const Point& offset, |
| 182 const Rect& rect) { |
| 181 return false; | 183 return false; |
| 182 } | 184 } |
| 183 | 185 |
| 184 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 186 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 185 int z_order, | 187 int z_order, |
| 186 OverlayTransform transform, | 188 OverlayTransform transform, |
| 187 const Rect& bounds_rect, | 189 const Rect& bounds_rect, |
| 188 const RectF& crop_rect) { | 190 const RectF& crop_rect) { |
| 189 return false; | 191 return false; |
| 190 } | 192 } |
| 191 | 193 |
| 192 } // namespace gfx | 194 } // namespace gfx |
| OLD | NEW |