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

Side by Side Diff: Source/core/html/track/vtt/VTTRegion.cpp

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 } 445 }
446 446
447 void VTTRegion::startTimer() 447 void VTTRegion::startTimer()
448 { 448 {
449 WTF_LOG(Media, "VTTRegion::startTimer"); 449 WTF_LOG(Media, "VTTRegion::startTimer");
450 450
451 if (m_scrollTimer.isActive()) 451 if (m_scrollTimer.isActive())
452 return; 452 return;
453 453
454 double duration = isScrollingRegion() ? scrollTime : 0; 454 double duration = isScrollingRegion() ? scrollTime : 0;
455 m_scrollTimer.startOneShot(duration); 455 m_scrollTimer.startOneShot(duration, FROM_HERE);
456 } 456 }
457 457
458 void VTTRegion::stopTimer() 458 void VTTRegion::stopTimer()
459 { 459 {
460 WTF_LOG(Media, "VTTRegion::stopTimer"); 460 WTF_LOG(Media, "VTTRegion::stopTimer");
461 461
462 if (m_scrollTimer.isActive()) 462 if (m_scrollTimer.isActive())
463 m_scrollTimer.stop(); 463 m_scrollTimer.stop();
464 } 464 }
465 465
466 void VTTRegion::scrollTimerFired(Timer<VTTRegion>*) 466 void VTTRegion::scrollTimerFired(Timer<VTTRegion>*)
467 { 467 {
468 WTF_LOG(Media, "VTTRegion::scrollTimerFired"); 468 WTF_LOG(Media, "VTTRegion::scrollTimerFired");
469 469
470 stopTimer(); 470 stopTimer();
471 displayLastVTTCueBox(); 471 displayLastVTTCueBox();
472 } 472 }
473 473
474 } // namespace WebCore 474 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/track/LoadableTextTrack.cpp ('k') | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698