| 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 <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/mac/bind_objc_block.h" | 10 #include "base/mac/bind_objc_block.h" |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 yuv_to_rgb_converter->CopyYUV420ToRGB(target, size_, rgb_texture); | 342 yuv_to_rgb_converter->CopyYUV420ToRGB(target, size_, rgb_texture); |
| 343 return true; | 343 return true; |
| 344 } | 344 } |
| 345 | 345 |
| 346 bool GLImageIOSurface::CopyTexSubImage(unsigned target, | 346 bool GLImageIOSurface::CopyTexSubImage(unsigned target, |
| 347 const gfx::Point& offset, | 347 const gfx::Point& offset, |
| 348 const gfx::Rect& rect) { | 348 const gfx::Rect& rect) { |
| 349 return false; | 349 return false; |
| 350 } | 350 } |
| 351 | 351 |
| 352 bool GLImageIOSurface::CopySubImageData(unsigned texture_id, |
| 353 const gfx::Point& offset, |
| 354 const gfx::Rect& rect, |
| 355 GLFence* in_fence, |
| 356 GLFence* out_fence) { |
| 357 return false; |
| 358 } |
| 359 |
| 352 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 360 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 353 int z_order, | 361 int z_order, |
| 354 gfx::OverlayTransform transform, | 362 gfx::OverlayTransform transform, |
| 355 const gfx::Rect& bounds_rect, | 363 const gfx::Rect& bounds_rect, |
| 356 const gfx::RectF& crop_rect) { | 364 const gfx::RectF& crop_rect) { |
| 357 NOTREACHED(); | 365 NOTREACHED(); |
| 358 return false; | 366 return false; |
| 359 } | 367 } |
| 360 | 368 |
| 361 void GLImageIOSurface::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 369 void GLImageIOSurface::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 } | 413 } |
| 406 | 414 |
| 407 // static | 415 // static |
| 408 GLImageIOSurface* GLImageIOSurface::FromGLImage(GLImage* image) { | 416 GLImageIOSurface* GLImageIOSurface::FromGLImage(GLImage* image) { |
| 409 if (!image || image->GetType() != Type::IOSURFACE) | 417 if (!image || image->GetType() != Type::IOSURFACE) |
| 410 return nullptr; | 418 return nullptr; |
| 411 return static_cast<GLImageIOSurface*>(image); | 419 return static_cast<GLImageIOSurface*>(image); |
| 412 } | 420 } |
| 413 | 421 |
| 414 } // namespace gl | 422 } // namespace gl |
| OLD | NEW |