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

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

Issue 1310083007: [Ozone-DRM] Move vsync logic into DrmWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mv-drm-calls-on-thread
Patch Set: fix 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_vsync_provider.cc ('k') | ui/ozone/platform/drm/gpu/drm_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_window.h
diff --git a/ui/ozone/platform/drm/gpu/drm_window.h b/ui/ozone/platform/drm/gpu/drm_window.h
index c6fae3e48cd841a8a586ff71a9e165d27d0a9343..fd2788df8a4d44a287a66b356673b8636498429e 100644
--- a/ui/ozone/platform/drm/gpu/drm_window.h
+++ b/ui/ozone/platform/drm/gpu/drm_window.h
@@ -12,6 +12,7 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/swap_result.h"
+#include "ui/gfx/vsync_provider.h"
#include "ui/ozone/ozone_export.h"
#include "ui/ozone/platform/drm/gpu/overlay_plane.h"
#include "ui/ozone/platform/drm/gpu/page_flip_request.h"
@@ -95,6 +96,9 @@ class OZONE_EXPORT DrmWindow {
// Returns the last buffer associated with this window.
const OverlayPlane* GetLastModesetBuffer();
+ void GetVSyncParameters(
+ const gfx::VSyncProvider::UpdateVSyncCallback& callback) const;
+
private:
// Draw the last set cursor & update the cursor plane.
void ResetCursor(bool bitmap_only);
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_vsync_provider.cc ('k') | ui/ozone/platform/drm/gpu/drm_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698