| 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_HOST_DRM_OVERLAY_MANAGER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 gfx::AcceleratedWidget widget); | 42 gfx::AcceleratedWidget widget); |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 void SendOverlayValidationRequest( | 45 void SendOverlayValidationRequest( |
| 46 const std::vector<OverlayCheck_Params>& new_params, | 46 const std::vector<OverlayCheck_Params>& new_params, |
| 47 gfx::AcceleratedWidget widget) const; | 47 gfx::AcceleratedWidget widget) const; |
| 48 bool CanHandleCandidate( | 48 bool CanHandleCandidate( |
| 49 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate, | 49 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate, |
| 50 gfx::AcceleratedWidget widget) const; | 50 gfx::AcceleratedWidget widget) const; |
| 51 | 51 |
| 52 bool is_supported_; | |
| 53 GpuThreadAdapter* proxy_; // Not owned. | 52 GpuThreadAdapter* proxy_; // Not owned. |
| 54 DrmWindowHostManager* window_manager_; // Not owned. | 53 DrmWindowHostManager* window_manager_; // Not owned. |
| 55 | 54 |
| 56 // List of all OverlayCheck_Params which have been validated in GPU side. | 55 // List of all OverlayCheck_Params which have been validated in GPU side. |
| 57 // Value is set to true if we are waiting for validation results from GPU. | 56 // Value is set to true if we are waiting for validation results from GPU. |
| 58 base::MRUCache<std::vector<OverlayCheck_Params>, bool> cache_; | 57 base::MRUCache<std::vector<OverlayCheck_Params>, bool> cache_; |
| 59 | 58 |
| 60 DISALLOW_COPY_AND_ASSIGN(DrmOverlayManager); | 59 DISALLOW_COPY_AND_ASSIGN(DrmOverlayManager); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace ui | 62 } // namespace ui |
| 64 | 63 |
| 65 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ | 64 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_OVERLAY_MANAGER_H_ |
| OLD | NEW |