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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 double nowSeconds = monotonicallyIncreasingTime() - m_timeOrigin; | 324 double nowSeconds = monotonicallyIncreasingTime() - m_timeOrigin; |
325 const double resolutionSeconds = 0.000005; | 325 const double resolutionSeconds = 0.000005; |
326 return 1000.0 * floor(nowSeconds / resolutionSeconds) * resolutionSeconds; | 326 return 1000.0 * floor(nowSeconds / resolutionSeconds) * resolutionSeconds; |
327 } | 327 } |
328 | 328 |
329 DEFINE_TRACE(PerformanceBase) | 329 DEFINE_TRACE(PerformanceBase) |
330 { | 330 { |
331 visitor->trace(m_frameTimingBuffer); | 331 visitor->trace(m_frameTimingBuffer); |
332 visitor->trace(m_resourceTimingBuffer); | 332 visitor->trace(m_resourceTimingBuffer); |
333 visitor->trace(m_userTiming); | 333 visitor->trace(m_userTiming); |
334 EventTargetWithInlineData::trace(visitor); | 334 RefCountedGarbageCollectedEventTargetWithInlineData<PerformanceBase>::trace(
visitor); |
335 } | 335 } |
336 | 336 |
337 } // namespace blink | 337 } // namespace blink |
OLD | NEW |