| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ozone_native_pixmap.h" | 5 #include "ui/gl/gl_image_ozone_native_pixmap.h" |
| 6 | 6 |
| 7 #define FOURCC(a, b, c, d) \ | 7 #define FOURCC(a, b, c, d) \ |
| 8 ((static_cast<uint32>(a)) | (static_cast<uint32>(b) << 8) | \ | 8 ((static_cast<uint32>(a)) | (static_cast<uint32>(b) << 8) | \ |
| 9 (static_cast<uint32>(c) << 16) | (static_cast<uint32>(d) << 24)) | 9 (static_cast<uint32>(c) << 16) | (static_cast<uint32>(d) << 24)) |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 } | 133 } |
| 134 | 134 |
| 135 unsigned GLImageOzoneNativePixmap::GetInternalFormat() { | 135 unsigned GLImageOzoneNativePixmap::GetInternalFormat() { |
| 136 return internalformat_; | 136 return internalformat_; |
| 137 } | 137 } |
| 138 | 138 |
| 139 void GLImageOzoneNativePixmap::Destroy(bool have_context) { | 139 void GLImageOzoneNativePixmap::Destroy(bool have_context) { |
| 140 gl::GLImageEGL::Destroy(have_context); | 140 gl::GLImageEGL::Destroy(have_context); |
| 141 } | 141 } |
| 142 | 142 |
| 143 bool GLImageOzoneNativePixmap::ScheduleOverlayPlane(AcceleratedWidget widget, | 143 bool GLImageOzoneNativePixmap::ScheduleOverlayPlane( |
| 144 int z_order, | 144 AcceleratedWidget widget, int z_order, OverlayTransform transform, |
| 145 OverlayTransform transform, | 145 gfx::BufferFormat storage_format, const Rect& bounds_rect, |
| 146 const Rect& bounds_rect, | 146 const RectF& crop_rect, bool handle_scaling) { |
| 147 const RectF& crop_rect) { | |
| 148 DCHECK(pixmap_); | 147 DCHECK(pixmap_); |
| 149 return pixmap_->ScheduleOverlayPlane(widget, z_order, transform, bounds_rect, | 148 return pixmap_->ScheduleOverlayPlane(widget, z_order, transform, |
| 150 crop_rect); | 149 storage_format, bounds_rect, |
| 150 crop_rect, handle_scaling); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void GLImageOzoneNativePixmap::OnMemoryDump( | 153 void GLImageOzoneNativePixmap::OnMemoryDump( |
| 154 base::trace_event::ProcessMemoryDump* pmd, | 154 base::trace_event::ProcessMemoryDump* pmd, |
| 155 uint64_t process_tracing_id, | 155 uint64_t process_tracing_id, |
| 156 const std::string& dump_name) { | 156 const std::string& dump_name) { |
| 157 // TODO(ericrk): Implement GLImage OnMemoryDump. crbug.com/514914 | 157 // TODO(ericrk): Implement GLImage OnMemoryDump. crbug.com/514914 |
| 158 } | 158 } |
| 159 | 159 |
| 160 } // namespace gfx | 160 } // namespace gfx |
| OLD | NEW |