| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |