| 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 24 matching lines...) Expand all Loading... |
| 35 return 0; | 35 return 0; |
| 36 } | 36 } |
| 37 | 37 |
| 38 int SurfaceFactoryOzone::GetDrmFd() { | 38 int SurfaceFactoryOzone::GetDrmFd() { |
| 39 return -1; | 39 return -1; |
| 40 } | 40 } |
| 41 | 41 |
| 42 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget( | 42 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget( |
| 43 gfx::AcceleratedWidget widget) { | 43 gfx::AcceleratedWidget widget) { |
| 44 NOTIMPLEMENTED(); | 44 NOTIMPLEMENTED(); |
| 45 return scoped_ptr<SurfaceOzoneEGL>(); | 45 return nullptr; |
| 46 } | 46 } |
| 47 | 47 |
| 48 scoped_ptr<SurfaceOzoneEGL> | 48 scoped_ptr<SurfaceOzoneEGL> |
| 49 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget( | 49 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget( |
| 50 gfx::AcceleratedWidget widget) { | 50 gfx::AcceleratedWidget widget) { |
| 51 NOTIMPLEMENTED(); | 51 NOTIMPLEMENTED(); |
| 52 return scoped_ptr<SurfaceOzoneEGL>(); | 52 return nullptr; |
| 53 } | 53 } |
| 54 | 54 |
| 55 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( | 55 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( |
| 56 gfx::AcceleratedWidget widget) { | 56 gfx::AcceleratedWidget widget) { |
| 57 NOTIMPLEMENTED(); | 57 NOTIMPLEMENTED(); |
| 58 return scoped_ptr<SurfaceOzoneCanvas>(); | 58 return nullptr; |
| 59 } | 59 } |
| 60 | 60 |
| 61 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties( | 61 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties( |
| 62 const int32* desired_attributes) { | 62 const int32* desired_attributes) { |
| 63 return desired_attributes; | 63 return desired_attributes; |
| 64 } | 64 } |
| 65 | 65 |
| 66 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( | 66 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( |
| 67 gfx::AcceleratedWidget w) { | 67 gfx::AcceleratedWidget w) { |
| 68 return NULL; | 68 return NULL; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 88 | 88 |
| 89 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() { | 89 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() { |
| 90 return false; | 90 return false; |
| 91 } | 91 } |
| 92 | 92 |
| 93 bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) { | 93 bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) { |
| 94 return false; | 94 return false; |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace ui | 97 } // namespace ui |
| OLD | NEW |