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

Side by Side Diff: third_party/WebKit/Source/platform/Timer.cpp

Issue 2390553002: Remove NO_LAZY_SWEEP_SANITIZE_ADDRESS (Closed)
Patch Set: Created 4 years, 2 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 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 m_weakPtrFactory.revokeAll(); 109 m_weakPtrFactory.revokeAll();
110 110
111 double delayMs = 1000.0 * (newTime - now); 111 double delayMs = 1000.0 * (newTime - now);
112 timerTaskRunner()->postDelayedTask( 112 timerTaskRunner()->postDelayedTask(
113 m_location, 113 m_location,
114 base::Bind(&TimerBase::runInternal, m_weakPtrFactory.createWeakPtr()), 114 base::Bind(&TimerBase::runInternal, m_weakPtrFactory.createWeakPtr()),
115 delayMs); 115 delayMs);
116 } 116 }
117 } 117 }
118 118
119 NO_LAZY_SWEEP_SANITIZE_ADDRESS
120 void TimerBase::runInternal() { 119 void TimerBase::runInternal() {
121 if (!canFire()) 120 if (!canFire())
122 return; 121 return;
123 122
124 m_weakPtrFactory.revokeAll(); 123 m_weakPtrFactory.revokeAll();
125 124
126 TRACE_EVENT0("blink", "TimerBase::run"); 125 TRACE_EVENT0("blink", "TimerBase::run");
127 #if DCHECK_IS_ON() 126 #if DCHECK_IS_ON()
128 DCHECK_EQ(m_thread, currentThread()) 127 DCHECK_EQ(m_thread, currentThread())
129 << "Timer posted by " << m_location.function_name() << " " 128 << "Timer posted by " << m_location.function_name() << " "
(...skipping 21 matching lines...) Expand all
151 const TimerBase* b) const { 150 const TimerBase* b) const {
152 return a->m_nextFireTime < b->m_nextFireTime; 151 return a->m_nextFireTime < b->m_nextFireTime;
153 } 152 }
154 153
155 // static 154 // static
156 double TimerBase::timerMonotonicallyIncreasingTime() const { 155 double TimerBase::timerMonotonicallyIncreasingTime() const {
157 return timerTaskRunner()->monotonicallyIncreasingVirtualTimeSeconds(); 156 return timerTaskRunner()->monotonicallyIncreasingVirtualTimeSeconds();
158 } 157 }
159 158
160 } // namespace blink 159 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698