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 "content/browser/renderer_host/display_link_mac.h" | 5 #include "content/browser/renderer_host/display_link_mac.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/trace_event/trace_event.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
11 | 11 |
12 template<> | 12 template<> |
13 struct ScopedTypeRefTraits<CVDisplayLinkRef> { | 13 struct ScopedTypeRefTraits<CVDisplayLinkRef> { |
14 static void Retain(CVDisplayLinkRef object) { | 14 static void Retain(CVDisplayLinkRef object) { |
15 CVDisplayLinkRetain(object); | 15 CVDisplayLinkRetain(object); |
16 } | 16 } |
17 static void Release(CVDisplayLinkRef object) { | 17 static void Release(CVDisplayLinkRef object) { |
18 CVDisplayLinkRelease(object); | 18 CVDisplayLinkRelease(object); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 display_link_mac->Tick(output_time); | 151 display_link_mac->Tick(output_time); |
152 return kCVReturnSuccess; | 152 return kCVReturnSuccess; |
153 } | 153 } |
154 | 154 |
155 // static | 155 // static |
156 base::LazyInstance<DisplayLinkMac::DisplayMap> | 156 base::LazyInstance<DisplayLinkMac::DisplayMap> |
157 DisplayLinkMac::display_map_ = LAZY_INSTANCE_INITIALIZER; | 157 DisplayLinkMac::display_map_ = LAZY_INSTANCE_INITIALIZER; |
158 | 158 |
159 } // content | 159 } // content |
160 | 160 |
OLD | NEW |