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

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

Issue 2886503002: Convert additional ozone/drm callbacks to OnceCallback (Closed)
Patch Set: fixed nit Created 3 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.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/macros.h" 10 #include "base/macros.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // Update the HW cursor bitmap & move to specified location. If 79 // Update the HW cursor bitmap & move to specified location. If
80 // the bitmap is empty, the cursor is hidden. 80 // the bitmap is empty, the cursor is hidden.
81 void SetCursorWithoutAnimations(const std::vector<SkBitmap>& bitmaps, 81 void SetCursorWithoutAnimations(const std::vector<SkBitmap>& bitmaps,
82 const gfx::Point& location); 82 const gfx::Point& location);
83 83
84 // Move the HW cursor to the specified location. 84 // Move the HW cursor to the specified location.
85 void MoveCursor(const gfx::Point& location); 85 void MoveCursor(const gfx::Point& location);
86 86
87 void SchedulePageFlip(const std::vector<OverlayPlane>& planes, 87 void SchedulePageFlip(const std::vector<OverlayPlane>& planes,
88 const SwapCompletionCallback& callback); 88 SwapCompletionOnceCallback callback);
89 std::vector<OverlayCheck_Params> TestPageFlip( 89 std::vector<OverlayCheck_Params> TestPageFlip(
90 const std::vector<OverlayCheck_Params>& overlay_params); 90 const std::vector<OverlayCheck_Params>& overlay_params);
91 91
92 // Returns the last buffer associated with this window. 92 // Returns the last buffer associated with this window.
93 const OverlayPlane* GetLastModesetBuffer(); 93 const OverlayPlane* GetLastModesetBuffer();
94 94
95 void GetVSyncParameters( 95 void GetVSyncParameters(
96 const gfx::VSyncProvider::UpdateVSyncCallback& callback) const; 96 const gfx::VSyncProvider::UpdateVSyncCallback& callback) const;
97 97
98 private: 98 private:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 OverlayPlaneList last_submitted_planes_; 132 OverlayPlaneList last_submitted_planes_;
133 133
134 bool force_buffer_reallocation_ = false; 134 bool force_buffer_reallocation_ = false;
135 135
136 DISALLOW_COPY_AND_ASSIGN(DrmWindow); 136 DISALLOW_COPY_AND_ASSIGN(DrmWindow);
137 }; 137 };
138 138
139 } // namespace ui 139 } // namespace ui
140 140
141 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ 141 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.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