| 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/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 363 |
| 364 bool GLImageIOSurface::CopyTexSubImage(unsigned target, | 364 bool GLImageIOSurface::CopyTexSubImage(unsigned target, |
| 365 const gfx::Point& offset, | 365 const gfx::Point& offset, |
| 366 const gfx::Rect& rect) { | 366 const gfx::Rect& rect) { |
| 367 return false; | 367 return false; |
| 368 } | 368 } |
| 369 | 369 |
| 370 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 370 bool GLImageIOSurface::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 371 int z_order, | 371 int z_order, |
| 372 gfx::OverlayTransform transform, | 372 gfx::OverlayTransform transform, |
| 373 gfx::BufferFormat storage_format, |
| 373 const gfx::Rect& bounds_rect, | 374 const gfx::Rect& bounds_rect, |
| 374 const gfx::RectF& crop_rect) { | 375 const gfx::RectF& crop_rect, |
| 376 bool handle_scaling) { |
| 375 NOTREACHED(); | 377 NOTREACHED(); |
| 376 return false; | 378 return false; |
| 377 } | 379 } |
| 378 | 380 |
| 379 void GLImageIOSurface::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 381 void GLImageIOSurface::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 380 uint64_t process_tracing_id, | 382 uint64_t process_tracing_id, |
| 381 const std::string& dump_name) { | 383 const std::string& dump_name) { |
| 382 // IOSurfaceGetAllocSize will return 0 if io_surface_ is invalid. In this case | 384 // IOSurfaceGetAllocSize will return 0 if io_surface_ is invalid. In this case |
| 383 // we log 0 for consistency with other GLImage memory dump functions. | 385 // we log 0 for consistency with other GLImage memory dump functions. |
| 384 size_t size_bytes = IOSurfaceGetAllocSize(io_surface_); | 386 size_t size_bytes = IOSurfaceGetAllocSize(io_surface_); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 408 g_widget_to_layer_map.Pointer()->erase(widget); | 410 g_widget_to_layer_map.Pointer()->erase(widget); |
| 409 } | 411 } |
| 410 | 412 |
| 411 // static | 413 // static |
| 412 unsigned GLImageIOSurface::GetInternalFormatForTesting( | 414 unsigned GLImageIOSurface::GetInternalFormatForTesting( |
| 413 gfx::BufferFormat format) { | 415 gfx::BufferFormat format) { |
| 414 DCHECK(ValidFormat(format)); | 416 DCHECK(ValidFormat(format)); |
| 415 return TextureFormat(format); | 417 return TextureFormat(format); |
| 416 } | 418 } |
| 417 } // namespace gl | 419 } // namespace gl |
| OLD | NEW |