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

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

Issue 1166463004: Revert of Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_surface.cc ('k') | ui/ozone/platform/drm/gpu/drm_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
15 #include "ui/ozone/ozone_export.h" 14 #include "ui/ozone/ozone_export.h"
16 #include "ui/ozone/platform/drm/gpu/overlay_plane.h" 15 #include "ui/ozone/platform/drm/gpu/overlay_plane.h"
17 #include "ui/ozone/platform/drm/gpu/page_flip_request.h"
18 #include "ui/ozone/public/surface_ozone_egl.h"
19 16
20 class SkBitmap; 17 class SkBitmap;
21 18
22 namespace gfx { 19 namespace gfx {
23 class Point; 20 class Point;
24 class Rect; 21 class Rect;
25 } // namespace gfx 22 } // namespace gfx
26 23
27 namespace ui { 24 namespace ui {
28 25
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const gfx::Point& location); 72 const gfx::Point& location);
76 73
77 // Move the HW cursor to the specified location. 74 // Move the HW cursor to the specified location.
78 void MoveCursor(const gfx::Point& location); 75 void MoveCursor(const gfx::Point& location);
79 76
80 // Queue overlay planes and page flips. 77 // Queue overlay planes and page flips.
81 // If hardware display controller is available, forward the information 78 // If hardware display controller is available, forward the information
82 // immediately, otherwise queue up on the window and forward when the hardware 79 // immediately, otherwise queue up on the window and forward when the hardware
83 // is once again ready. 80 // is once again ready.
84 void QueueOverlayPlane(const OverlayPlane& plane); 81 void QueueOverlayPlane(const OverlayPlane& plane);
85 82 bool SchedulePageFlip(bool is_sync, const base::Closure& callback);
86 bool SchedulePageFlip(bool is_sync, const SwapCompletionCallback& callback);
87 83
88 // Returns the last buffer associated with this window. 84 // Returns the last buffer associated with this window.
89 const OverlayPlane* GetLastModesetBuffer(); 85 const OverlayPlane* GetLastModesetBuffer();
90 86
91 private: 87 private:
92 // Draw the last set cursor & update the cursor plane. 88 // Draw the last set cursor & update the cursor plane.
93 void ResetCursor(bool bitmap_only); 89 void ResetCursor(bool bitmap_only);
94 90
95 // Draw next frame in an animated cursor. 91 // Draw next frame in an animated cursor.
96 void OnCursorAnimationTimeout(); 92 void OnCursorAnimationTimeout();
(...skipping 29 matching lines...) Expand all
126 OverlayPlaneList pending_planes_; 122 OverlayPlaneList pending_planes_;
127 OverlayPlaneList last_submitted_planes_; 123 OverlayPlaneList last_submitted_planes_;
128 bool last_swap_sync_; 124 bool last_swap_sync_;
129 125
130 DISALLOW_COPY_AND_ASSIGN(DrmWindow); 126 DISALLOW_COPY_AND_ASSIGN(DrmWindow);
131 }; 127 };
132 128
133 } // namespace ui 129 } // namespace ui
134 130
135 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ 131 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_surface.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