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

Unified Diff: media/mojo/common/mojo_decoder_buffer_converter.cc

Issue 2623263005: Tag some of Mojo heap allocations for the heap profiler. (Closed)
Patch Set: Synced 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | media/remoting/demuxer_stream_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/common/mojo_decoder_buffer_converter.cc
diff --git a/media/mojo/common/mojo_decoder_buffer_converter.cc b/media/mojo/common/mojo_decoder_buffer_converter.cc
index 0a12aa6067ec6521bb1b98144b7900f4c75b0bb0..32080d3af4458ff28707a811c51bec9e38035b8f 100644
--- a/media/mojo/common/mojo_decoder_buffer_converter.cc
+++ b/media/mojo/common/mojo_decoder_buffer_converter.cc
@@ -63,7 +63,9 @@ std::unique_ptr<MojoDecoderBufferReader> MojoDecoderBufferReader::Create(
MojoDecoderBufferReader::MojoDecoderBufferReader(
mojo::ScopedDataPipeConsumerHandle consumer_handle)
- : consumer_handle_(std::move(consumer_handle)), bytes_read_(0) {
+ : consumer_handle_(std::move(consumer_handle)),
+ pipe_watcher_(FROM_HERE),
+ bytes_read_(0) {
DVLOG(1) << __func__;
MojoResult result =
@@ -183,7 +185,9 @@ std::unique_ptr<MojoDecoderBufferWriter> MojoDecoderBufferWriter::Create(
MojoDecoderBufferWriter::MojoDecoderBufferWriter(
mojo::ScopedDataPipeProducerHandle producer_handle)
- : producer_handle_(std::move(producer_handle)), bytes_written_(0) {
+ : producer_handle_(std::move(producer_handle)),
+ pipe_watcher_(FROM_HERE),
+ bytes_written_(0) {
DVLOG(1) << __func__;
MojoResult result =
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | media/remoting/demuxer_stream_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698