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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceBase.cpp

Issue 1362973004: Rename FROM_HERE to BLINK_FROM_HERE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 } 375 }
376 376
377 bool PerformanceBase::hasObserverFor(PerformanceEntry::EntryType filterType) 377 bool PerformanceBase::hasObserverFor(PerformanceEntry::EntryType filterType)
378 { 378 {
379 return m_observerFilterOptions & filterType; 379 return m_observerFilterOptions & filterType;
380 } 380 }
381 381
382 void PerformanceBase::activateObserver(PerformanceObserver& observer) 382 void PerformanceBase::activateObserver(PerformanceObserver& observer)
383 { 383 {
384 if (m_activeObservers.isEmpty()) 384 if (m_activeObservers.isEmpty())
385 m_deliverObservationsTimer.startOneShot(0, FROM_HERE); 385 m_deliverObservationsTimer.startOneShot(0, BLINK_FROM_HERE);
386 386
387 m_activeObservers.add(&observer); 387 m_activeObservers.add(&observer);
388 } 388 }
389 389
390 void PerformanceBase::resumeSuspendedObservers() 390 void PerformanceBase::resumeSuspendedObservers()
391 { 391 {
392 ASSERT(isMainThread()); 392 ASSERT(isMainThread());
393 if (m_suspendedObservers.isEmpty()) 393 if (m_suspendedObservers.isEmpty())
394 return; 394 return;
395 395
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 visitor->trace(m_frameTimingBuffer); 444 visitor->trace(m_frameTimingBuffer);
445 visitor->trace(m_resourceTimingBuffer); 445 visitor->trace(m_resourceTimingBuffer);
446 visitor->trace(m_userTiming); 446 visitor->trace(m_userTiming);
447 visitor->trace(m_observers); 447 visitor->trace(m_observers);
448 visitor->trace(m_activeObservers); 448 visitor->trace(m_activeObservers);
449 visitor->trace(m_suspendedObservers); 449 visitor->trace(m_suspendedObservers);
450 RefCountedGarbageCollectedEventTargetWithInlineData<PerformanceBase>::trace( visitor); 450 RefCountedGarbageCollectedEventTargetWithInlineData<PerformanceBase>::trace( visitor);
451 } 451 }
452 452
453 } // namespace blink 453 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698