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

Side by Side Diff: ui/accelerated_widget_mac/display_link_mac.h

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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_ACCELERATED_WIDGET_MAC_DISPLAY_LINK_MAC_H_ 5 #ifndef UI_ACCELERATED_WIDGET_MAC_DISPLAY_LINK_MAC_H_
6 #define UI_ACCELERATED_WIDGET_MAC_DISPLAY_LINK_MAC_H_ 6 #define UI_ACCELERATED_WIDGET_MAC_DISPLAY_LINK_MAC_H_
7 7
8 #include <map> 8 #include <map>
9 #include <QuartzCore/CVDisplayLink.h> 9 #include <QuartzCore/CVDisplayLink.h>
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 base::TimeTicks timebase_; 83 base::TimeTicks timebase_;
84 base::TimeDelta interval_; 84 base::TimeDelta interval_;
85 85
86 // The time after which we should re-start the display link to get fresh 86 // The time after which we should re-start the display link to get fresh
87 // parameters. 87 // parameters.
88 base::TimeTicks recalculate_time_; 88 base::TimeTicks recalculate_time_;
89 89
90 // Each display link instance consumes a non-negligible number of cycles, so 90 // Each display link instance consumes a non-negligible number of cycles, so
91 // make all display links on the same screen share the same object. 91 // make all display links on the same screen share the same object.
92 typedef std::map<CGDirectDisplayID, DisplayLinkMac*> DisplayMap; 92 typedef std::map<CGDirectDisplayID, DisplayLinkMac*> DisplayMap;
93 static base::LazyInstance<DisplayMap> display_map_; 93 static base::LazyInstance<DisplayMap>::DestructorAtExit display_map_;
94 }; 94 };
95 95
96 } // ui 96 } // ui
97 97
98 #endif // UI_ACCELERATED_WIDGET_MAC_DISPLAY_LINK_MAC_H_ 98 #endif // UI_ACCELERATED_WIDGET_MAC_DISPLAY_LINK_MAC_H_
OLDNEW
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.mm ('k') | ui/accelerated_widget_mac/display_link_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698