| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 } | 423 } |
| 424 | 424 |
| 425 void PerformanceBase::notifyObserversOfEntry(PerformanceEntry& entry) | 425 void PerformanceBase::notifyObserversOfEntry(PerformanceEntry& entry) |
| 426 { | 426 { |
| 427 for (auto& observer : m_observers) { | 427 for (auto& observer : m_observers) { |
| 428 if (observer->filterOptions() & entry.entryTypeEnum()) | 428 if (observer->filterOptions() & entry.entryTypeEnum()) |
| 429 observer->enqueuePerformanceEntry(entry); | 429 observer->enqueuePerformanceEntry(entry); |
| 430 } | 430 } |
| 431 } | 431 } |
| 432 | 432 |
| 433 bool PerformanceBase::hasObserverFor(PerformanceEntry::EntryType filterType) | 433 bool PerformanceBase::hasObserverFor(PerformanceEntry::EntryType filterType) con
st |
| 434 { | 434 { |
| 435 return m_observerFilterOptions & filterType; | 435 return m_observerFilterOptions & filterType; |
| 436 } | 436 } |
| 437 | 437 |
| 438 void PerformanceBase::activateObserver(PerformanceObserver& observer) | 438 void PerformanceBase::activateObserver(PerformanceObserver& observer) |
| 439 { | 439 { |
| 440 if (m_activeObservers.isEmpty()) | 440 if (m_activeObservers.isEmpty()) |
| 441 m_deliverObservationsTimer.startOneShot(0, BLINK_FROM_HERE); | 441 m_deliverObservationsTimer.startOneShot(0, BLINK_FROM_HERE); |
| 442 | 442 |
| 443 m_activeObservers.add(&observer); | 443 m_activeObservers.add(&observer); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 visitor->trace(m_resourceTimingBuffer); | 506 visitor->trace(m_resourceTimingBuffer); |
| 507 visitor->trace(m_longTaskTimingBuffer); | 507 visitor->trace(m_longTaskTimingBuffer); |
| 508 visitor->trace(m_userTiming); | 508 visitor->trace(m_userTiming); |
| 509 visitor->trace(m_observers); | 509 visitor->trace(m_observers); |
| 510 visitor->trace(m_activeObservers); | 510 visitor->trace(m_activeObservers); |
| 511 visitor->trace(m_suspendedObservers); | 511 visitor->trace(m_suspendedObservers); |
| 512 EventTargetWithInlineData::trace(visitor); | 512 EventTargetWithInlineData::trace(visitor); |
| 513 } | 513 } |
| 514 | 514 |
| 515 } // namespace blink | 515 } // namespace blink |
| OLD | NEW |