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

Issue 2767623002: Slightly reduce memory usage in OscillatorNode (Closed)

Created:
3 years, 9 months ago by Raymond Toy
Modified:
3 years, 8 months ago
Reviewers:
hongchan
CC:
chromium-reviews, blink-reviews, haraken, Raymond Toy, hongchan
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Slightly reduce memory usage in OscillatorNode When an OscillatorNode is created, a PeriodicWave is created for a "sine" oscillator. This is unavoidable when the factory method is used. However, with the constructor, the type of oscillator can be specified and there is no need to create both a "sine" PeriodicWave and one for the specified type. Thus, for the constructor, only create the wave table for the specified type. BUG=700175 TEST=not testable; manually verifed with prints/debugger that sine table is not created unless needed. Review-Url: https://codereview.chromium.org/2767623002 Cr-Commit-Position: refs/heads/master@{#466134} Committed: https://chromium.googlesource.com/chromium/src/+/aa8cf68adc5654695f83f355d601eba127f16d75

Patch Set 1 #

Patch Set 2 : Adjust setting of type in OscillatorHandler constructor #

Patch Set 3 : Rebase #

Patch Set 4 : Don't set the oscillator type twice. #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -19 lines) Patch
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OscillatorNode.h View 1 2 4 chunks +11 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp View 1 2 3 5 chunks +39 lines, -16 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
Raymond Toy
PTAL.
3 years, 8 months ago (2017-04-20 15:53:58 UTC) #5
hongchan
lgtm
3 years, 8 months ago (2017-04-20 18:43:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2767623002/80001
3 years, 8 months ago (2017-04-20 19:05:21 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 21:14:38 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/aa8cf68adc5654695f83f355d601...

Powered by Google App Engine
This is Rietveld 408576698