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

Side by Side Diff: Source/modules/webaudio/AudioContext.cpp

Issue 941403002: Revert of Add task location information to ExecutionContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 770
771 if (newState == m_contextState) { 771 if (newState == m_contextState) {
772 // ASSERTs above failed; just return. 772 // ASSERTs above failed; just return.
773 return; 773 return;
774 } 774 }
775 775
776 m_contextState = newState; 776 m_contextState = newState;
777 777
778 // Notify context that state changed 778 // Notify context that state changed
779 if (executionContext()) 779 if (executionContext())
780 executionContext()->postTask(FROM_HERE, createSameThreadTask(&AudioConte xt::notifyStateChange, this)); 780 executionContext()->postTask(createSameThreadTask(&AudioContext::notifyS tateChange, this));
781 } 781 }
782 782
783 void AudioContext::notifyStateChange() 783 void AudioContext::notifyStateChange()
784 { 784 {
785 dispatchEvent(Event::create(EventTypeNames::statechange)); 785 dispatchEvent(Event::create(EventTypeNames::statechange));
786 } 786 }
787 787
788 ScriptPromise AudioContext::suspendContext(ScriptState* scriptState) 788 ScriptPromise AudioContext::suspendContext(ScriptState* scriptState)
789 { 789 {
790 ASSERT(isMainThread()); 790 ASSERT(isMainThread());
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 } 1390 }
1391 1391
1392 void AudioContext::didFinishMarking(ThreadState&) 1392 void AudioContext::didFinishMarking(ThreadState&)
1393 { 1393 {
1394 unlock(); 1394 unlock();
1395 } 1395 }
1396 1396
1397 } // namespace blink 1397 } // namespace blink
1398 1398
1399 #endif // ENABLE(WEB_AUDIO) 1399 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/quota/DeprecatedStorageQuota.cpp ('k') | Source/modules/webaudio/AudioScheduledSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698