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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_window.h

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, separate out use of the result, add enum Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GPU_DRM_WINDOW_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
11 #include "ui/gfx/geometry/point.h" 11 #include "ui/gfx/geometry/point.h"
12 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 #include "ui/gfx/swap_result.h"
14 #include "ui/ozone/ozone_export.h" 15 #include "ui/ozone/ozone_export.h"
15 #include "ui/ozone/platform/drm/gpu/overlay_plane.h" 16 #include "ui/ozone/platform/drm/gpu/overlay_plane.h"
16 17
17 class SkBitmap; 18 class SkBitmap;
18 19
19 namespace gfx { 20 namespace gfx {
20 class Point; 21 class Point;
21 class Rect; 22 class Rect;
22 } // namespace gfx 23 } // namespace gfx
23 24
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const gfx::Point& location); 73 const gfx::Point& location);
73 74
74 // Move the HW cursor to the specified location. 75 // Move the HW cursor to the specified location.
75 void MoveCursor(const gfx::Point& location); 76 void MoveCursor(const gfx::Point& location);
76 77
77 // Queue overlay planes and page flips. 78 // Queue overlay planes and page flips.
78 // If hardware display controller is available, forward the information 79 // If hardware display controller is available, forward the information
79 // immediately, otherwise queue up on the window and forward when the hardware 80 // immediately, otherwise queue up on the window and forward when the hardware
80 // is once again ready. 81 // is once again ready.
81 void QueueOverlayPlane(const OverlayPlane& plane); 82 void QueueOverlayPlane(const OverlayPlane& plane);
82 bool SchedulePageFlip(bool is_sync, const base::Closure& callback); 83 bool SchedulePageFlip(bool is_sync,
84 const base::Callback<void(gfx::SwapResult)>& callback);
83 85
84 // Returns the last buffer associated with this window. 86 // Returns the last buffer associated with this window.
85 const OverlayPlane* GetLastModesetBuffer(); 87 const OverlayPlane* GetLastModesetBuffer();
86 88
87 private: 89 private:
88 // Draw the last set cursor & update the cursor plane. 90 // Draw the last set cursor & update the cursor plane.
89 void ResetCursor(bool bitmap_only); 91 void ResetCursor(bool bitmap_only);
90 92
91 // Draw next frame in an animated cursor. 93 // Draw next frame in an animated cursor.
92 void OnCursorAnimationTimeout(); 94 void OnCursorAnimationTimeout();
(...skipping 29 matching lines...) Expand all
122 OverlayPlaneList pending_planes_; 124 OverlayPlaneList pending_planes_;
123 OverlayPlaneList last_submitted_planes_; 125 OverlayPlaneList last_submitted_planes_;
124 bool last_swap_sync_; 126 bool last_swap_sync_;
125 127
126 DISALLOW_COPY_AND_ASSIGN(DrmWindow); 128 DISALLOW_COPY_AND_ASSIGN(DrmWindow);
127 }; 129 };
128 130
129 } // namespace ui 131 } // namespace ui
130 132
131 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ 133 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698