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

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

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 #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
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
OLDNEW
« no previous file with comments | « ui/accelerated_widget_mac/display_link_mac.h ('k') | ui/accelerated_widget_mac/window_resize_helper_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698