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

Issue 2171703003: Load HRTF database only when the panner is set to HRTF (Closed)

Created:
4 years, 5 months ago by Raymond Toy
Modified:
4 years, 5 months ago
Reviewers:
hongchan
CC:
Raymond Toy, blink-reviews, chromium-reviews, haraken, hongchan
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Load HRTF database only when the panner is set to HRTF Currently, the creation of any panner node causes the HRTF database to be loaded. However, the default panning model is "equalpower" (about 99.8%) so loading the database is a waste of time and memory. (According to https://codereview.chromium.org/176683003/, it takes 30MB to hold the database.) Thus, only load the HRTF database when the panning model is set to HRTF. Can't test this easily, but did verify with a debugger that the database is only created when the panning model is set to HRTF and not before. BUG=592787 TEST=none Committed: https://crrev.com/6610df622ffb33ade51e5ccdb92b7d6b0e2b81ce Cr-Commit-Position: refs/heads/master@{#407307}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplify #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -18 lines) Patch
M third_party/WebKit/Source/modules/webaudio/AudioListener.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PannerNode.cpp View 1 2 chunks +17 lines, -17 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Raymond Toy
PTAL. Not quite sure if it's ok style to have a case statement fall through ...
4 years, 5 months ago (2016-07-21 16:36:55 UTC) #2
hongchan
https://codereview.chromium.org/2171703003/diff/1/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp File third_party/WebKit/Source/modules/webaudio/PannerNode.cpp (right): https://codereview.chromium.org/2171703003/diff/1/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp#newcode293 third_party/WebKit/Source/modules/webaudio/PannerNode.cpp:293: switch (model) { If this fall through is necessary, ...
4 years, 5 months ago (2016-07-21 16:48:53 UTC) #3
Raymond Toy
https://codereview.chromium.org/2171703003/diff/1/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp File third_party/WebKit/Source/modules/webaudio/PannerNode.cpp (right): https://codereview.chromium.org/2171703003/diff/1/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp#newcode293 third_party/WebKit/Source/modules/webaudio/PannerNode.cpp:293: switch (model) { On 2016/07/21 16:48:53, hoch wrote: > ...
4 years, 5 months ago (2016-07-21 16:57:34 UTC) #4
Raymond Toy
Anything more I need to do?
4 years, 5 months ago (2016-07-22 20:43:52 UTC) #5
hongchan
lgtm
4 years, 5 months ago (2016-07-22 20:48:45 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/2171703003/20001
4 years, 5 months ago (2016-07-22 21:15:56 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-23 00:01:21 UTC) #9
commit-bot: I haz the power
4 years, 5 months ago (2016-07-23 00:02:59 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6610df622ffb33ade51e5ccdb92b7d6b0e2b81ce
Cr-Commit-Position: refs/heads/master@{#407307}

Powered by Google App Engine
This is Rietveld 408576698