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

Side by Side Diff: chromecast/media/cma/pipeline/av_pipeline_impl.cc

Issue 1776353006: [Chromecast] Add metrics for logging platform A/V bitrate estimates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add const qualifier to bytes_decoded accessor Created 4 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chromecast/media/cma/pipeline/av_pipeline_impl.h" 5 #include "chromecast/media/cma/pipeline/av_pipeline_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 19 matching lines...) Expand all
30 namespace media { 30 namespace media {
31 31
32 namespace { 32 namespace {
33 33
34 const int kNoCallbackId = -1; 34 const int kNoCallbackId = -1;
35 35
36 } // namespace 36 } // namespace
37 37
38 AvPipelineImpl::AvPipelineImpl(MediaPipelineBackend::Decoder* decoder, 38 AvPipelineImpl::AvPipelineImpl(MediaPipelineBackend::Decoder* decoder,
39 const AvPipelineClient& client) 39 const AvPipelineClient& client)
40 : decoder_(decoder), 40 : bytes_decoded_since_last_update_(0),
41 decoder_(decoder),
41 client_(client), 42 client_(client),
42 state_(kUninitialized), 43 state_(kUninitialized),
43 buffered_time_(::media::kNoTimestamp()), 44 buffered_time_(::media::kNoTimestamp()),
44 playable_buffered_time_(::media::kNoTimestamp()), 45 playable_buffered_time_(::media::kNoTimestamp()),
45 enable_feeding_(false), 46 enable_feeding_(false),
46 pending_read_(false), 47 pending_read_(false),
47 enable_time_update_(false), 48 enable_time_update_(false),
48 pending_time_update_task_(false), 49 pending_time_update_task_(false),
49 media_keys_(NULL), 50 media_keys_(NULL),
50 media_keys_callback_id_(kNoCallbackId), 51 media_keys_callback_id_(kNoCallbackId),
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 } 366 }
366 } 367 }
367 368
368 // The frame is playable: remove it from the list of non playable frames. 369 // The frame is playable: remove it from the list of non playable frames.
369 non_playable_frames_.pop_front(); 370 non_playable_frames_.pop_front();
370 } 371 }
371 } 372 }
372 373
373 } // namespace media 374 } // namespace media
374 } // namespace chromecast 375 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698