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/surface_ozone_canvas.h" | 11 #include "ui/ozone/public/surface_ozone_canvas.h" |
11 #include "ui/ozone/public/surface_ozone_egl.h" | 12 #include "ui/ozone/public/surface_ozone_egl.h" |
12 | 13 |
13 namespace ui { | 14 namespace ui { |
14 | 15 |
15 // static | 16 // static |
16 SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL; | 17 SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL; |
17 | 18 |
18 SurfaceFactoryOzone::SurfaceFactoryOzone() { | 19 SurfaceFactoryOzone::SurfaceFactoryOzone() { |
19 CHECK(!impl_) << "There should only be a single SurfaceFactoryOzone."; | 20 CHECK(!impl_) << "There should only be a single SurfaceFactoryOzone."; |
(...skipping 29 matching lines...) Expand all Loading... |
49 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties( | 50 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties( |
50 const int32* desired_attributes) { | 51 const int32* desired_attributes) { |
51 return desired_attributes; | 52 return desired_attributes; |
52 } | 53 } |
53 | 54 |
54 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( | 55 ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates( |
55 gfx::AcceleratedWidget w) { | 56 gfx::AcceleratedWidget w) { |
56 return NULL; | 57 return NULL; |
57 } | 58 } |
58 | 59 |
59 void SurfaceFactoryOzone::ScheduleOverlayPlane( | 60 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( |
60 gfx::AcceleratedWidget w, | 61 gfx::Size size, |
61 int plane_z_order, | 62 BufferFormat format) { |
62 gfx::OverlayTransform plane_transform, | 63 return NULL; |
63 ui::NativeBufferOzone buffer, | |
64 const gfx::Rect& display_bounds, | |
65 gfx::RectF crop_rect) { | |
66 NOTREACHED(); | |
67 } | 64 } |
68 | 65 |
69 ui::NativeBufferOzone SurfaceFactoryOzone::CreateNativeBuffer( | 66 bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() { |
70 gfx::Size size, | 67 return false; |
71 BufferFormat format) { | |
72 return 0; | |
73 } | 68 } |
74 | |
75 } // namespace ui | 69 } // namespace ui |
OLD | NEW |