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

Side by Side Diff: content/renderer/media/rtc_video_decoder.h

Issue 23967010: Add UMA reporting for RTCVideoDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 3 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 | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 // Stores the buffer metadata to |input_buffer_data_|. 175 // Stores the buffer metadata to |input_buffer_data_|.
176 void RecordBufferData(const BufferData& buffer_data); 176 void RecordBufferData(const BufferData& buffer_data);
177 // Gets the buffer metadata from |input_buffer_data_|. 177 // Gets the buffer metadata from |input_buffer_data_|.
178 void GetBufferData(int32 bitstream_buffer_id, 178 void GetBufferData(int32 bitstream_buffer_id,
179 uint32_t* timestamp, 179 uint32_t* timestamp,
180 uint32_t* width, 180 uint32_t* width,
181 uint32_t* height, 181 uint32_t* height,
182 size_t* size); 182 size_t* size);
183 183
184 // Records the result of InitDecode to UMA and returns |status|.
185 int32_t RecordInitDecodeUMA(int32_t status);
186
184 enum State { 187 enum State {
185 UNINITIALIZED, // The decoder has not initialized. 188 UNINITIALIZED, // The decoder has not initialized.
186 INITIALIZED, // The decoder has initialized. 189 INITIALIZED, // The decoder has initialized.
187 RESETTING, // The decoder is being reset. 190 RESETTING, // The decoder is being reset.
188 DECODE_ERROR, // Decoding error happened. 191 DECODE_ERROR, // Decoding error happened.
189 }; 192 };
190 193
191 static const int32 ID_LAST; // maximum bitstream buffer id 194 static const int32 ID_LAST; // maximum bitstream buffer id
192 static const int32 ID_HALF; // half of the maximum bitstream buffer id 195 static const int32 ID_HALF; // half of the maximum bitstream buffer id
193 static const int32 ID_INVALID; // indicates Reset or Release never occurred 196 static const int32 ID_INVALID; // indicates Reset or Release never occurred
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // A buffer that has an id less than this should be dropped because Reset or 268 // A buffer that has an id less than this should be dropped because Reset or
266 // Release has been called. Guarded by |lock_|. 269 // Release has been called. Guarded by |lock_|.
267 int32 reset_bitstream_buffer_id_; 270 int32 reset_bitstream_buffer_id_;
268 271
269 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); 272 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder);
270 }; 273 };
271 274
272 } // namespace content 275 } // namespace content
273 276
274 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ 277 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698