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

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

Issue 270103005: Tried to move AudioSummingJuction to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 26 matching lines...) Expand all
37 namespace WebCore { 37 namespace WebCore {
38 38
39 AudioSummingJunction::AudioSummingJunction(AudioContext* context) 39 AudioSummingJunction::AudioSummingJunction(AudioContext* context)
40 : m_context(context) 40 : m_context(context)
41 , m_renderingStateNeedUpdating(false) 41 , m_renderingStateNeedUpdating(false)
42 { 42 {
43 } 43 }
44 44
45 AudioSummingJunction::~AudioSummingJunction() 45 AudioSummingJunction::~AudioSummingJunction()
46 { 46 {
47 #if !ENABLE(OILPAN)
47 if (m_renderingStateNeedUpdating && m_context.get()) 48 if (m_renderingStateNeedUpdating && m_context.get())
48 m_context->removeMarkedSummingJunction(this); 49 m_context->removeMarkedSummingJunction(this);
50 #endif
49 } 51 }
50 52
51 void AudioSummingJunction::changedOutputs() 53 void AudioSummingJunction::changedOutputs()
52 { 54 {
53 ASSERT(context()->isGraphOwner()); 55 ASSERT(context()->isGraphOwner());
54 if (!m_renderingStateNeedUpdating && canUpdateState()) { 56 if (!m_renderingStateNeedUpdating && canUpdateState()) {
55 context()->markSummingJunctionDirty(this); 57 context()->markSummingJunctionDirty(this);
56 m_renderingStateNeedUpdating = true; 58 m_renderingStateNeedUpdating = true;
57 } 59 }
58 } 60 }
(...skipping 11 matching lines...) Expand all
70 m_renderingOutputs[j] = output; 72 m_renderingOutputs[j] = output;
71 output->updateRenderingState(); 73 output->updateRenderingState();
72 } 74 }
73 75
74 didUpdate(); 76 didUpdate();
75 77
76 m_renderingStateNeedUpdating = false; 78 m_renderingStateNeedUpdating = false;
77 } 79 }
78 } 80 }
79 81
82 void AudioSummingJunction::trace(Visitor* visitor)
83 {
84 visitor->trace(m_context);
85 }
86
80 } // namespace WebCore 87 } // namespace WebCore
81 88
82 #endif // ENABLE(WEB_AUDIO) 89 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioSummingJunction.h ('k') | Source/modules/webaudio/BiquadFilterNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698