1 // Copyright 2014 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef OZONE_WAYLAND_EGL_SURFACE_OZONE_WAYLAND
6 #define OZONE_WAYLAND_EGL_SURFACE_OZONE_WAYLAND
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/gfx/gfx_export.h"
11 #include "ui/gfx/ozone/surface_ozone_egl.h"
13 namespace ozonewayland {
15 // Provides EGL support for SurfaceOzone.
16 class SurfaceOzoneWayland : public gfx::SurfaceOzoneEGL {
18 explicit SurfaceOzoneWayland(unsigned handle);
19 virtual ~SurfaceOzoneWayland() OVERRIDE;
22 virtual intptr_t GetNativeWindow() OVERRIDE;
23 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE;
24 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE;
28 DISALLOW_COPY_AND_ASSIGN(SurfaceOzoneWayland);
31 } // namespace ozonewayland
33 #endif // OZONE_WAYLAND_EGL_SURFACE_OZONE_WAYLAND