| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |