| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |