Chromium Code Reviews| Index: Source/bindings/templates/interface.cpp |
| diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
| index 6da556407f9643d017c75e1e983ae2a7afd06fc7..b2c25719437544e69fcecf84df015e9dc043faaa 100644 |
| --- a/Source/bindings/templates/interface.cpp |
| +++ b/Source/bindings/templates/interface.cpp |
| @@ -710,6 +710,12 @@ v8::Handle<v8::Object> {{v8_class}}::createWrapper(PassRefPtr<{{cpp_class}}> imp |
| if (UNLIKELY(wrapper.IsEmpty())) |
| return wrapper; |
| + {% if is_audio_buffer %} |
| + for (unsigned i = 0, n = impl->numberOfChannels(); i < n; i++) { |
| + Float32Array* channelData = impl->getChannelData(i); |
| + channelData->buffer()->setDeallocationObserver(V8ArrayBufferDeallocationObserver::instanceTemplate()); |
|
haraken
2014/01/09 08:52:58
I don't fully understand why this code is written
Nils Barth (inactive)
2014/01/09 11:24:45
Will do!
Nils Barth (inactive)
2014/01/10 01:37:10
Hi Raymond,
We're currently rewriting the IDL comp
Ken Russell (switch to Gerrit)
2014/01/10 02:31:31
+dslomov
On 2014/01/10 01:37:10, Nils Barth wrote
Nils Barth (inactive)
2014/01/14 07:39:45
*ping* Dmitry: could you PTAL? Thanks!
Dmitry Lomov (no reviews)
2014/01/14 08:37:58
Yes, sorry, slipped through the cracks.
We only se
haraken
2014/01/14 09:27:06
What we want is to notify V8 the fact that Blink a
|
| + } |
| + {% endif %} |
| installPerContextEnabledProperties(wrapper, impl.get(), isolate); |
| {% set wrapper_configuration = 'WrapperConfiguration::Dependent' |
| if (has_visit_dom_wrapper or |