| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ | 6 #define UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 bool GpuCreateWindow(gfx::AcceleratedWidget widget) override; | 88 bool GpuCreateWindow(gfx::AcceleratedWidget widget) override; |
| 89 bool GpuWindowBoundsChanged(gfx::AcceleratedWidget widget, | 89 bool GpuWindowBoundsChanged(gfx::AcceleratedWidget widget, |
| 90 const gfx::Rect& bounds) override; | 90 const gfx::Rect& bounds) override; |
| 91 | 91 |
| 92 // DrmCursorProxy. | 92 // DrmCursorProxy. |
| 93 void CursorSet(gfx::AcceleratedWidget window, | 93 void CursorSet(gfx::AcceleratedWidget window, |
| 94 const std::vector<SkBitmap>& bitmaps, | 94 const std::vector<SkBitmap>& bitmaps, |
| 95 const gfx::Point& point, | 95 const gfx::Point& point, |
| 96 int frame_delay_ms) override; | 96 int frame_delay_ms) override; |
| 97 void Move(gfx::AcceleratedWidget window, const gfx::Point& point) override; | 97 void Move(gfx::AcceleratedWidget window, const gfx::Point& point) override; |
| 98 void InitializeOnEvdev() override; |
| 98 | 99 |
| 99 private: | 100 private: |
| 100 void RunObservers(); | 101 void RunObservers(); |
| 101 void DispatchObserversFromDrmThread(); | 102 void DispatchObserversFromDrmThread(); |
| 102 | 103 |
| 103 void GpuCheckOverlayCapabilitiesCallback( | 104 void GpuCheckOverlayCapabilitiesCallback( |
| 104 gfx::AcceleratedWidget widget, | 105 gfx::AcceleratedWidget widget, |
| 105 const std::vector<OverlayCheck_Params>& overlays) const; | 106 const std::vector<OverlayCheck_Params>& overlays) const; |
| 106 | 107 |
| 107 void GpuConfigureNativeDisplayCallback(int64_t display_id, | 108 void GpuConfigureNativeDisplayCallback(int64_t display_id, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 132 base::ThreadChecker on_window_server_thread_; | 133 base::ThreadChecker on_window_server_thread_; |
| 133 | 134 |
| 134 base::WeakPtrFactory<MusThreadProxy> weak_ptr_factory_; | 135 base::WeakPtrFactory<MusThreadProxy> weak_ptr_factory_; |
| 135 | 136 |
| 136 DISALLOW_COPY_AND_ASSIGN(MusThreadProxy); | 137 DISALLOW_COPY_AND_ASSIGN(MusThreadProxy); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 } // namespace ui | 140 } // namespace ui |
| 140 | 141 |
| 141 #endif // UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ | 142 #endif // UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ |
| OLD | NEW |