OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/platform/wayland/wayland_egl_surface.h" | 5 #include "ui/ozone/platform/wayland/wayland_egl_surface.h" |
6 | 6 |
7 #include <wayland-egl.h> | 7 #include <wayland-egl.h> |
8 | 8 |
9 #include "third_party/khronos/EGL/egl.h" | 9 #include "third_party/khronos/EGL/egl.h" |
10 #include "ui/ozone/common/egl_util.h" | 10 #include "ui/ozone/common/egl_util.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 bool WaylandEGLSurface::OnSwapBuffers() { | 45 bool WaylandEGLSurface::OnSwapBuffers() { |
46 return true; | 46 return true; |
47 } | 47 } |
48 | 48 |
49 void WaylandEGLSurface::OnSwapBuffersAsync( | 49 void WaylandEGLSurface::OnSwapBuffersAsync( |
50 const SwapCompletionCallback& callback) { | 50 const SwapCompletionCallback& callback) { |
51 NOTREACHED(); | 51 NOTREACHED(); |
52 } | 52 } |
53 | 53 |
54 scoped_ptr<gfx::VSyncProvider> WaylandEGLSurface::CreateVSyncProvider() { | 54 std::unique_ptr<gfx::VSyncProvider> WaylandEGLSurface::CreateVSyncProvider() { |
55 NOTIMPLEMENTED(); | 55 NOTIMPLEMENTED(); |
56 return nullptr; | 56 return nullptr; |
57 } | 57 } |
58 | 58 |
59 void* /* EGLConfig */ WaylandEGLSurface::GetEGLSurfaceConfig( | 59 void* /* EGLConfig */ WaylandEGLSurface::GetEGLSurfaceConfig( |
60 const EglConfigCallbacks& egl) { | 60 const EglConfigCallbacks& egl) { |
61 EGLint config_attribs[] = {EGL_BUFFER_SIZE, | 61 EGLint config_attribs[] = {EGL_BUFFER_SIZE, |
62 32, | 62 32, |
63 EGL_ALPHA_SIZE, | 63 EGL_ALPHA_SIZE, |
64 8, | 64 8, |
65 EGL_BLUE_SIZE, | 65 EGL_BLUE_SIZE, |
66 8, | 66 8, |
67 EGL_GREEN_SIZE, | 67 EGL_GREEN_SIZE, |
68 8, | 68 8, |
69 EGL_RED_SIZE, | 69 EGL_RED_SIZE, |
70 8, | 70 8, |
71 EGL_RENDERABLE_TYPE, | 71 EGL_RENDERABLE_TYPE, |
72 EGL_OPENGL_ES2_BIT, | 72 EGL_OPENGL_ES2_BIT, |
73 EGL_SURFACE_TYPE, | 73 EGL_SURFACE_TYPE, |
74 EGL_WINDOW_BIT, | 74 EGL_WINDOW_BIT, |
75 EGL_NONE}; | 75 EGL_NONE}; |
76 return ChooseEGLConfig(egl, config_attribs); | 76 return ChooseEGLConfig(egl, config_attribs); |
77 } | 77 } |
78 | 78 |
79 } // namespace ui | 79 } // namespace ui |
OLD | NEW |