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

Issue 221243002: Move many calls of lazyInitialize() from AudioContext to AudioNode. (Closed)

Created:
6 years, 8 months ago by KhNo
Modified:
6 years, 8 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Move many calls of lazyInitialize() from AudioContext to AudioNode. lazyInitialize() has been called on many places on AudioContext. All can be replaced to construct of AudioNode once. Remove redundant codes. BUG=none Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170829

Patch Set 1 #

Total comments: 14

Patch Set 2 : Applying review comment #

Patch Set 3 : Add comment #

Total comments: 4

Patch Set 4 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -25 lines) Patch
M Source/modules/webaudio/AudioContext.h View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 1 2 3 14 chunks +5 lines, -24 lines 0 comments Download
M Source/modules/webaudio/AudioNode.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
KhNo
Please review this patch.
6 years, 8 months ago (2014-04-01 17:20:28 UTC) #1
Raymond Toy
https://codereview.chromium.org/221243002/diff/1/Source/modules/webaudio/AudioContext.cpp File Source/modules/webaudio/AudioContext.cpp (left): https://codereview.chromium.org/221243002/diff/1/Source/modules/webaudio/AudioContext.cpp#oldcode190 Source/modules/webaudio/AudioContext.cpp:190: Don't gratuitously delete (or add) blank lines. https://codereview.chromium.org/221243002/diff/1/Source/modules/webaudio/AudioContext.cpp#oldcode201 Source/modules/webaudio/AudioContext.cpp:201: ...
6 years, 8 months ago (2014-04-01 17:49:48 UTC) #2
KhNo
PTAL :) and check my answer too. https://codereview.chromium.org/221243002/diff/1/Source/modules/webaudio/AudioContext.cpp File Source/modules/webaudio/AudioContext.cpp (left): https://codereview.chromium.org/221243002/diff/1/Source/modules/webaudio/AudioContext.cpp#oldcode190 Source/modules/webaudio/AudioContext.cpp:190: On 2014/04/01 ...
6 years, 8 months ago (2014-04-01 18:25:08 UTC) #3
Raymond Toy
https://codereview.chromium.org/221243002/diff/1/Source/modules/webaudio/AudioContext.cpp File Source/modules/webaudio/AudioContext.cpp (left): https://codereview.chromium.org/221243002/diff/1/Source/modules/webaudio/AudioContext.cpp#oldcode201 Source/modules/webaudio/AudioContext.cpp:201: m_isInitialized = true; On 2014/04/01 18:25:08, KhNo wrote: > ...
6 years, 8 months ago (2014-04-01 20:20:29 UTC) #4
KhNo
> Ok. Same could be said for lazyInitialize. Now some magic happens inside the > ...
6 years, 8 months ago (2014-04-02 01:59:37 UTC) #5
Raymond Toy
Just a few fixes for the comments. I would also consider adding a comment to ...
6 years, 8 months ago (2014-04-02 17:11:32 UTC) #6
KhNo
PTAL :) I have added and fixed some comment as review. https://codereview.chromium.org/221243002/diff/40001/Source/modules/webaudio/AudioContext.cpp File Source/modules/webaudio/AudioContext.cpp (right): ...
6 years, 8 months ago (2014-04-03 13:21:02 UTC) #7
Raymond Toy
On 2014/04/03 13:21:02, KhNo wrote: > PTAL :) I have added and fixed some comment ...
6 years, 8 months ago (2014-04-03 17:45:57 UTC) #8
KhNo
The CQ bit was checked by keonho07.kim@samsung.com
6 years, 8 months ago (2014-04-04 03:38:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keonho07.kim@samsung.com/221243002/60001
6 years, 8 months ago (2014-04-04 03:38:38 UTC) #10
KhNo
On 2014/04/03 17:45:57, Raymond Toy wrote: > On 2014/04/03 13:21:02, KhNo wrote: > > PTAL ...
6 years, 8 months ago (2014-04-04 03:38:43 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 05:10:55 UTC) #12
Message was sent while issue was closed.
Change committed as 170829

Powered by Google App Engine
This is Rietveld 408576698