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" |
11 #include "ui/ozone/public/surface_ozone_canvas.h" | 11 #include "ui/ozone/public/surface_ozone_canvas.h" |
12 #include "ui/ozone/public/surface_ozone_egl.h" | 12 #include "ui/ozone/public/surface_ozone_egl.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 | 15 |
| 16 SurfaceFactoryOzone::EglConfigInfo::EglConfigInfo() { |
| 17 } |
| 18 SurfaceFactoryOzone::EglConfigInfo::~EglConfigInfo() { |
| 19 } |
| 20 |
16 // static | 21 // static |
17 SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL; | 22 SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL; |
18 | 23 |
19 SurfaceFactoryOzone::SurfaceFactoryOzone() { | 24 SurfaceFactoryOzone::SurfaceFactoryOzone() { |
20 DCHECK(!impl_) << "There should only be a single SurfaceFactoryOzone."; | 25 DCHECK(!impl_) << "There should only be a single SurfaceFactoryOzone."; |
21 impl_ = this; | 26 impl_ = this; |
22 } | 27 } |
23 | 28 |
24 SurfaceFactoryOzone::~SurfaceFactoryOzone() { | 29 SurfaceFactoryOzone::~SurfaceFactoryOzone() { |
25 DCHECK_EQ(impl_, this); | 30 DCHECK_EQ(impl_, this); |
(...skipping 21 matching lines...) Expand all Loading... |
47 NOTIMPLEMENTED(); | 52 NOTIMPLEMENTED(); |
48 return scoped_ptr<SurfaceOzoneEGL>(); | 53 return scoped_ptr<SurfaceOzoneEGL>(); |
49 } | 54 } |
50 | 55 |
51 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( | 56 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( |
52 gfx::AcceleratedWidget widget) { | 57 gfx::AcceleratedWidget widget) { |
53 NOTIMPLEMENTED(); | 58 NOTIMPLEMENTED(); |
54 return scoped_ptr<SurfaceOzoneCanvas>(); | 59 return scoped_ptr<SurfaceOzoneCanvas>(); |
55 } | 60 } |
56 | 61 |
57 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties( | 62 void* SurfaceFactoryOzone::GetEGLSurfaceConfig(const EglConfigInfo& egl, |
58 const int32* desired_attributes) { | 63 SurfaceOzoneEGL* surface) { |
59 return desired_attributes; | 64 return nullptr; |
60 } | 65 } |
61 | 66 |
62 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( | 67 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( |
63 gfx::AcceleratedWidget w) { | 68 gfx::AcceleratedWidget w) { |
64 return NULL; | 69 return NULL; |
65 } | 70 } |
66 | 71 |
67 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( | 72 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( |
68 gfx::AcceleratedWidget widget, | 73 gfx::AcceleratedWidget widget, |
69 gfx::Size size, | 74 gfx::Size size, |
(...skipping 14 matching lines...) Expand all Loading... |
84 | 89 |
85 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() { | 90 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() { |
86 return false; | 91 return false; |
87 } | 92 } |
88 | 93 |
89 bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) { | 94 bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) { |
90 return false; | 95 return false; |
91 } | 96 } |
92 | 97 |
93 } // namespace ui | 98 } // namespace ui |
OLD | NEW |