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 #include "ui/accelerated_widget_mac/display_link_mac.h" | 5 #include "ui/accelerated_widget_mac/display_link_mac.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 CGDisplayChangeSummaryFlags flags, | 207 CGDisplayChangeSummaryFlags flags, |
208 void* user_info) { | 208 void* user_info) { |
209 DisplayMap::iterator found = display_map_.Get().find(display); | 209 DisplayMap::iterator found = display_map_.Get().find(display); |
210 if (found == display_map_.Get().end()) | 210 if (found == display_map_.Get().end()) |
211 return; | 211 return; |
212 DisplayLinkMac* display_link_mac = found->second; | 212 DisplayLinkMac* display_link_mac = found->second; |
213 display_link_mac->timebase_and_interval_valid_ = false; | 213 display_link_mac->timebase_and_interval_valid_ = false; |
214 } | 214 } |
215 | 215 |
216 // static | 216 // static |
217 base::LazyInstance<DisplayLinkMac::DisplayMap> | 217 base::LazyInstance<DisplayLinkMac::DisplayMap>::DestructorAtExit |
218 DisplayLinkMac::display_map_ = LAZY_INSTANCE_INITIALIZER; | 218 DisplayLinkMac::display_map_ = LAZY_INSTANCE_INITIALIZER; |
219 | 219 |
220 } // ui | 220 } // ui |
221 | 221 |
OLD | NEW |