| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/ozone/public/surface_factory_ozone.h" | 5 #include "ui/ozone/public/surface_factory_ozone.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "ui/ozone/public/native_pixmap.h" | 10 #include "ui/ozone/public/native_pixmap.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( | 62 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( |
| 63 gfx::AcceleratedWidget w) { | 63 gfx::AcceleratedWidget w) { |
| 64 return NULL; | 64 return NULL; |
| 65 } | 65 } |
| 66 | 66 |
| 67 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( | 67 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( |
| 68 gfx::AcceleratedWidget widget, | 68 gfx::AcceleratedWidget widget, |
| 69 gfx::Size size, | 69 gfx::Size size, |
| 70 BufferFormat format, | 70 BufferFormat format, |
| 71 BufferUsage usage) { | 71 BufferUsage usage, |
| 72 return NULL; | 72 gfx::GpuMemoryBufferHandle* handle) { |
| 73 return nullptr; |
| 73 } | 74 } |
| 74 | 75 |
| 75 bool SurfaceFactoryOzone::ScheduleOverlayPlane( | 76 bool SurfaceFactoryOzone::ScheduleOverlayPlane( |
| 76 gfx::AcceleratedWidget widget, | 77 gfx::AcceleratedWidget widget, |
| 77 int plane_z_order, | 78 int plane_z_order, |
| 78 gfx::OverlayTransform plane_transform, | 79 gfx::OverlayTransform plane_transform, |
| 79 scoped_refptr<NativePixmap> buffer, | 80 scoped_refptr<NativePixmap> buffer, |
| 80 const gfx::Rect& display_bounds, | 81 const gfx::Rect& display_bounds, |
| 81 const gfx::RectF& crop_rect) { | 82 const gfx::RectF& crop_rect) { |
| 82 return false; | 83 return false; |
| 83 } | 84 } |
| 84 | 85 |
| 85 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() { | 86 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() { |
| 86 return false; | 87 return false; |
| 87 } | 88 } |
| 88 | 89 |
| 89 bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) { | 90 bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) { |
| 90 return false; | 91 return false; |
| 91 } | 92 } |
| 92 | 93 |
| 93 } // namespace ui | 94 } // namespace ui |
| OLD | NEW |