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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h

Issue 2959693002: Simplify OfflineAudioDestinationNode::DoOfflineRendering(). (Closed)
Patch Set: rebased upto r482341 Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 // These variables are for counting the number of frames for the current 117 // These variables are for counting the number of frames for the current
118 // progress and the remaining frames to be processed. 118 // progress and the remaining frames to be processed.
119 size_t frames_processed_; 119 size_t frames_processed_;
120 size_t frames_to_process_; 120 size_t frames_to_process_;
121 121
122 // This flag is necessary to distinguish the state of the context between 122 // This flag is necessary to distinguish the state of the context between
123 // 'created' and 'suspended'. If this flag is false and the current state 123 // 'created' and 'suspended'. If this flag is false and the current state
124 // is 'suspended', it means the context is created and have not started yet. 124 // is 'suspended', it means the context is created and have not started yet.
125 bool is_rendering_started_; 125 bool is_rendering_started_;
126
127 // This flag indicates whether the rendering should be suspended or not.
128 bool should_suspend_;
129 }; 126 };
130 127
131 class OfflineAudioDestinationNode final : public AudioDestinationNode { 128 class OfflineAudioDestinationNode final : public AudioDestinationNode {
132 public: 129 public:
133 static OfflineAudioDestinationNode* Create(BaseAudioContext*, 130 static OfflineAudioDestinationNode* Create(BaseAudioContext*,
134 AudioBuffer* render_target); 131 AudioBuffer* render_target);
135 132
136 private: 133 private:
137 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* render_target); 134 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* render_target);
138 }; 135 };
139 136
140 } // namespace blink 137 } // namespace blink
141 138
142 #endif // OfflineAudioDestinationNode_h 139 #endif // OfflineAudioDestinationNode_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698