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_ |