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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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/demo/software_renderer.h ('k') | ui/views/controls/menu/menu_controller.h » ('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"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 DrmDeviceManager* device_manager_; // Not owned. 115 DrmDeviceManager* device_manager_; // Not owned.
116 ScreenManager* screen_manager_; // Not owned. 116 ScreenManager* screen_manager_; // Not owned.
117 117
118 // The current bounds of the window. 118 // The current bounds of the window.
119 gfx::Rect bounds_; 119 gfx::Rect bounds_;
120 120
121 // The controller associated with the current window. This may be nullptr if 121 // The controller associated with the current window. This may be nullptr if
122 // the window isn't over an active display. 122 // the window isn't over an active display.
123 HardwareDisplayController* controller_ = nullptr; 123 HardwareDisplayController* controller_ = nullptr;
124 124
125 base::RepeatingTimer<DrmWindow> cursor_timer_; 125 base::RepeatingTimer cursor_timer_;
126 126
127 scoped_refptr<DrmBuffer> cursor_buffers_[2]; 127 scoped_refptr<DrmBuffer> cursor_buffers_[2];
128 int cursor_frontbuffer_ = 0; 128 int cursor_frontbuffer_ = 0;
129 129
130 std::vector<SkBitmap> cursor_bitmaps_; 130 std::vector<SkBitmap> cursor_bitmaps_;
131 gfx::Point cursor_location_; 131 gfx::Point cursor_location_;
132 int cursor_frame_ = 0; 132 int cursor_frame_ = 0;
133 int cursor_frame_delay_ms_ = 0; 133 int cursor_frame_delay_ms_ = 0;
134 134
135 // Planes and flips currently being queued in the absence of hardware display 135 // Planes and flips currently being queued in the absence of hardware display
136 // controller. 136 // controller.
137 OverlayPlaneList pending_planes_; 137 OverlayPlaneList pending_planes_;
138 OverlayPlaneList last_submitted_planes_; 138 OverlayPlaneList last_submitted_planes_;
139 139
140 bool force_buffer_reallocation_ = false; 140 bool force_buffer_reallocation_ = false;
141 141
142 DISALLOW_COPY_AND_ASSIGN(DrmWindow); 142 DISALLOW_COPY_AND_ASSIGN(DrmWindow);
143 }; 143 };
144 144
145 } // namespace ui 145 } // namespace ui
146 146
147 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ 147 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/ozone/demo/software_renderer.h ('k') | ui/views/controls/menu/menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698