Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ozone / wayland / egl / surface_ozone_wayland.h
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.
4
5 #ifndef OZONE_WAYLAND_EGL_SURFACE_OZONE_WAYLAND
6 #define OZONE_WAYLAND_EGL_SURFACE_OZONE_WAYLAND
7
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"
12
13 namespace ozonewayland {
14
15 // Provides EGL support for SurfaceOzone.
16 class SurfaceOzoneWayland : public gfx::SurfaceOzoneEGL {
17  public:
18   explicit SurfaceOzoneWayland(unsigned handle);
19   virtual ~SurfaceOzoneWayland() OVERRIDE;
20
21   // SurfaceOzone:
22   virtual intptr_t GetNativeWindow() OVERRIDE;
23   virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE;
24   virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE;
25
26  private:
27   unsigned handle_;
28   DISALLOW_COPY_AND_ASSIGN(SurfaceOzoneWayland);
29 };
30
31 }  // namespace ozonewayland
32
33 #endif  // OZONE_WAYLAND_EGL_SURFACE_OZONE_WAYLAND