| Index: ui/ozone/platform/gbm/ozone_platform_gbm.h
|
| diff --git a/ui/ozone/platform/dri/ozone_platform_dri.h b/ui/ozone/platform/gbm/ozone_platform_gbm.h
|
| similarity index 65%
|
| copy from ui/ozone/platform/dri/ozone_platform_dri.h
|
| copy to ui/ozone/platform/gbm/ozone_platform_gbm.h
|
| index 74826f6a5bd4d4ef5a13281a01644d864abffe60..c398efee947331dedaf5de73e46b28bff8944b40 100644
|
| --- a/ui/ozone/platform/dri/ozone_platform_dri.h
|
| +++ b/ui/ozone/platform/gbm/ozone_platform_gbm.h
|
| @@ -2,11 +2,11 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
|
| -#define UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
|
| +#ifndef UI_OZONE_PLATFORM_GBM_OZONE_PLATFORM_GBM_H_
|
| +#define UI_OZONE_PLATFORM_GBM_OZONE_PLATFORM_GBM_H_
|
|
|
| #include "ui/events/ozone/evdev/event_factory.h"
|
| -#include "ui/gfx/ozone/dri/dri_surface_factory.h"
|
| +#include "ui/gfx/ozone/dri/gbm_surface_factory.h"
|
| #include "ui/ozone/ozone_platform.h"
|
|
|
| namespace ui {
|
| @@ -15,28 +15,29 @@ namespace ui {
|
| //
|
| // This platform is Linux without any display server (no X, wayland, or
|
| // anything). This means chrome alone owns the display and input devices.
|
| -class OzonePlatformDri : public OzonePlatform {
|
| +class OzonePlatformGbm : public OzonePlatform {
|
| public:
|
| - OzonePlatformDri();
|
| - virtual ~OzonePlatformDri();
|
| + OzonePlatformGbm();
|
| + virtual ~OzonePlatformGbm();
|
|
|
| virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE;
|
| virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE;
|
| virtual ui::InputMethodContextFactoryOzone*
|
| GetInputMethodContextFactoryOzone() OVERRIDE;
|
| + virtual gfx::OverlayHALOzone* GetOverlayHALOzone() OVERRIDE;
|
|
|
| private:
|
| - gfx::DriSurfaceFactory surface_factory_ozone_;
|
| + gfx::GbmSurfaceFactory surface_factory_ozone_;
|
| ui::EventFactoryEvdev event_factory_ozone_;
|
| // This creates a minimal input context.
|
| ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri);
|
| + DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm);
|
| };
|
|
|
| // Constructor hook for use in ozone_platform_list.cc
|
| -OzonePlatform* CreateOzonePlatformDri();
|
| +OzonePlatform* CreateOzonePlatformGbm();
|
|
|
| } // namespace ui
|
|
|
| -#endif // UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
|
| +#endif // UI_OZONE_PLATFORM_GBM_OZONE_PLATFORM_GBM_H_
|
|
|