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

Side by Side Diff: media/remoting/remote_demuxer_stream_adapter.cc

Issue 2623263005: Tag some of Mojo heap allocations for the heap profiler. (Closed)
Patch Set: Addressed comments + fixed build. Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "media/remoting/remote_demuxer_stream_adapter.h" 5 #include "media/remoting/remote_demuxer_stream_adapter.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "media/base/bind_to_current_loop.h" 9 #include "media/base/bind_to_current_loop.h"
10 #include "media/base/decoder_buffer.h" 10 #include "media/base/decoder_buffer.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 rpc_handle_(rpc_handle), 54 rpc_handle_(rpc_handle),
55 demuxer_stream_(demuxer_stream), 55 demuxer_stream_(demuxer_stream),
56 type_(demuxer_stream ? demuxer_stream->type() : DemuxerStream::UNKNOWN), 56 type_(demuxer_stream ? demuxer_stream->type() : DemuxerStream::UNKNOWN),
57 remote_callback_handle_(kInvalidHandle), 57 remote_callback_handle_(kInvalidHandle),
58 read_until_count_(0), 58 read_until_count_(0),
59 last_count_(0), 59 last_count_(0),
60 processing_read_rpc_(false), 60 processing_read_rpc_(false),
61 pending_flush_(false), 61 pending_flush_(false),
62 current_pending_frame_offset_(0), 62 current_pending_frame_offset_(0),
63 pending_frame_is_eos_(false), 63 pending_frame_is_eos_(false),
64 write_watcher_(FROM_HERE),
64 media_status_(::media::DemuxerStream::kOk), 65 media_status_(::media::DemuxerStream::kOk),
65 producer_handle_(std::move(producer_handle)), 66 producer_handle_(std::move(producer_handle)),
66 request_buffer_weak_factory_(this), 67 request_buffer_weak_factory_(this),
67 weak_factory_(this) { 68 weak_factory_(this) {
68 DCHECK(main_task_runner_); 69 DCHECK(main_task_runner_);
69 DCHECK(media_task_runner_); 70 DCHECK(media_task_runner_);
70 DCHECK(media_task_runner_->BelongsToCurrentThread()); 71 DCHECK(media_task_runner_->BelongsToCurrentThread());
71 DCHECK(demuxer_stream); 72 DCHECK(demuxer_stream);
72 const RpcBroker::ReceiveMessageCallback receive_callback = 73 const RpcBroker::ReceiveMessageCallback receive_callback =
73 media::BindToCurrentLoop( 74 media::BindToCurrentLoop(
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 } 433 }
433 434
434 if (write_watcher_.IsWatching()) { 435 if (write_watcher_.IsWatching()) {
435 DEMUXER_VLOG(2) << "Cancel mojo data pipe watcher"; 436 DEMUXER_VLOG(2) << "Cancel mojo data pipe watcher";
436 write_watcher_.Cancel(); 437 write_watcher_.Cancel();
437 } 438 }
438 } 439 }
439 440
440 } // namespace remoting 441 } // namespace remoting
441 } // namespace media 442 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698