Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: ui/ozone/platform/drm/gpu/drm_window_proxy.h

Issue 1311043016: Switch DRM platform to using a separate thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mv-drm-calls-on-thread2
Patch Set: . Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..87a61b0a4a24bd3626208099194c751d5273b5fa
--- /dev/null
+++ b/ui/ozone/platform/drm/gpu/drm_window_proxy.h
@@ -0,0 +1,40 @@
+// 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 "ui/gfx/native_widget_types.h"
+#include "ui/gfx/vsync_provider.h"
+#include "ui/ozone/public/surface_ozone_egl.h"
+
+namespace ui {
+
+class DrmThread;
+struct OverlayPlane;
+
+class DrmWindowProxy {
+ public:
+ DrmWindowProxy(gfx::AcceleratedWidget widget, DrmThread* drm_thread);
+ ~DrmWindowProxy();
+
+ gfx::AcceleratedWidget widget() const { return widget_; }
+
+ void SchedulePageFlip(const std::vector<OverlayPlane>& planes,
+ const SwapCompletionCallback& callback);
+
+ void GetVSyncParameters(
+ const gfx::VSyncProvider::UpdateVSyncCallback& callback);
+
+ private:
+ gfx::AcceleratedWidget widget_;
+
+ DrmThread* drm_thread_;
+
+ DISALLOW_COPY_AND_ASSIGN(DrmWindowProxy);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698