| Index: ui/ozone/platform/drm/gpu/drm_window_proxy.h
|
| diff --git a/ui/ozone/platform/drm/gpu/drm_window_proxy.h b/ui/ozone/platform/drm/gpu/drm_window_proxy.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..778ba53dddb7238aaa9c9e88e5a995b772e68419
|
| --- /dev/null
|
| +++ b/ui/ozone/platform/drm/gpu/drm_window_proxy.h
|
| @@ -0,0 +1,61 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_
|
| +#define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "ui/gfx/native_widget_types.h"
|
| +#include "ui/gfx/vsync_provider.h"
|
| +#include "ui/ozone/public/surface_ozone_egl.h"
|
| +
|
| +namespace base {
|
| +class SingleThreadTaskRunner;
|
| +}
|
| +
|
| +namespace gfx {
|
| +class Rect;
|
| +}
|
| +
|
| +namespace ui {
|
| +
|
| +class DrmDevice;
|
| +class DrmWindow;
|
| +struct OverlayPlane;
|
| +
|
| +class DrmWindowProxy {
|
| + public:
|
| + DrmWindowProxy(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
|
| + base::WeakPtr<DrmWindow> impl,
|
| + gfx::AcceleratedWidget widget);
|
| + ~DrmWindowProxy();
|
| +
|
| + gfx::AcceleratedWidget widget() const { return widget_; }
|
| +
|
| + void QueueOverlayPlane(const OverlayPlane& plane) const;
|
| +
|
| + bool SchedulePageFlip(bool is_sync,
|
| + const SwapCompletionCallback& callback) const;
|
| +
|
| + bool IsDisplayedOnUniversalDisplayLinkDevice() const;
|
| +
|
| + gfx::Rect GetBounds() const;
|
| +
|
| + void GetVSyncParameters(
|
| + const gfx::VSyncProvider::UpdateVSyncCallback& callback) const;
|
| +
|
| + scoped_refptr<DrmDevice> GetDrmDevice() const;
|
| +
|
| + private:
|
| + scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
|
| + base::WeakPtr<DrmWindow> impl_;
|
| + gfx::AcceleratedWidget widget_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(DrmWindowProxy);
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_
|
|
|