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

Unified Diff: ui/ozone/platform/drm/gpu/drm_thread_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_thread_proxy.h
diff --git a/ui/ozone/platform/drm/gpu/drm_thread_proxy.h b/ui/ozone/platform/drm/gpu/drm_thread_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..1015c9732949d8e4e935a30100f7b37608fcd76d
--- /dev/null
+++ b/ui/ozone/platform/drm/gpu/drm_thread_proxy.h
@@ -0,0 +1,60 @@
+// 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_THREAD_PROXY_H_
+#define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
+
+namespace ui {
+
+class DrmThreadProxy {
+ public:
+ DrmThreadProxy();
+
+ void OnCreateWindow(gfx::AcceleratedWidget widget);
+ void OnDestroyWindow(gfx::AcceleratedWidget widget);
+ void OnWindowBoundsChanged(gfx::AcceleratedWidget widget,
+ const gfx::Rect& bounds);
+ void OnCursorSet(gfx::AcceleratedWidget widget,
+ const std::vector<SkBitmap>& bitmaps,
+ const gfx::Point& location,
+ int frame_delay_ms);
+ void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location);
+ void OnCheckOverlayCapabilities(
+ gfx::AcceleratedWidget widget,
+ const std::vector<OverlayCheck_Params>& overlays,
+ const base::Callback<void(gfx::AcceleratedWidget, bool)>& callback);
+ void OnRefreshNativeDisplays(
+ const base::Callback<void(const std::vector<DisplaySnapshot_Params>&)>&
+ callback);
+ void OnConfigureNativeDisplay(
+ int64_t id,
+ const DisplayMode_Params& mode,
+ const gfx::Point& origin,
+ const base::Callback<void(int64_t, bool)>& callback);
+ void OnDisableNativeDisplay(
+ int64_t id,
+ const base::Callback<void(int64_t, bool)>& callback);
+ void OnTakeDisplayControl(const base::Callback<void(bool)>& callback);
+ void OnRelinquishDisplayControl(const base::Callback<void(bool)>& callback);
+ void OnAddGraphicsDevice(const base::FilePath& path,
+ const base::FileDescriptor& fd);
+ void OnRemoveGraphicsDevice(const base::FilePath& path);
+ void OnGetHDCPState(
+ int64_t display_id,
+ const base::Callback<void(int64_t, bool, HDCPState>& callback);
+ void OnSetHDCPState(
+ int64_t display_id,
+ HDCPState state,
+ const base::Callback<void(int64_t, bool)>& callback);
+ void OnSetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut);
+
+ private:
+ DrmThread drm_thread_;
+
+ DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698