1 // Copyright 2013 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_UI_GFX_OZONE_DISPLAY_H_
6 #define OZONE_UI_GFX_OZONE_DISPLAY_H_
8 #include "ozone/platform/ozone_export_wayland.h"
9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/ozone/surface_factory_ozone.h"
14 class OZONE_WAYLAND_EXPORT OzoneDisplay : public gfx::SurfaceFactoryOzone {
17 virtual ~OzoneDisplay();
19 // Returns the static instance last set using SetInstance().
20 static OzoneDisplay* GetInstance();
22 // Sets the implementation delegate. Ownership is retained by the caller.
23 static void SetInstance(OzoneDisplay* instance);
25 virtual void LookAheadOutputGeometry();
28 static OzoneDisplay* instance_;
29 DISALLOW_COPY_AND_ASSIGN(OzoneDisplay);
34 #endif // OZONE_UI_GFX_OZONE_DISPLAY_H_