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

Unified Diff: media/formats/mp4/dolby_vision.cc

Issue 2815303006: Convert MediaLog from being ref counted to owned by WebMediaPlayer. (Closed)
Patch Set: Rebase. Created 3 years, 8 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 | « media/formats/mp4/dolby_vision.h ('k') | media/formats/mp4/dolby_vision_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp4/dolby_vision.cc
diff --git a/media/formats/mp4/dolby_vision.cc b/media/formats/mp4/dolby_vision.cc
index c40decdf28276deb3830a4c5fe4a49d0a0b7fad1..fd32c85fffd485164e93b6bca2db3215c06a2eea 100644
--- a/media/formats/mp4/dolby_vision.cc
+++ b/media/formats/mp4/dolby_vision.cc
@@ -32,14 +32,15 @@ bool DolbyVisionConfiguration::Parse(BoxReader* reader) {
return ParseInternal(reader, reader->media_log());
}
-bool DolbyVisionConfiguration::Parse(const uint8_t* data, int data_size) {
+bool DolbyVisionConfiguration::ParseForTesting(const uint8_t* data,
+ int data_size) {
BufferReader reader(data, data_size);
- return ParseInternal(&reader, new MediaLog());
+ MediaLog media_log;
+ return ParseInternal(&reader, &media_log);
}
-bool DolbyVisionConfiguration::ParseInternal(
- BufferReader* reader,
- const scoped_refptr<MediaLog>& media_log) {
+bool DolbyVisionConfiguration::ParseInternal(BufferReader* reader,
+ MediaLog* media_log) {
uint16_t profile_track_indication = 0;
RCHECK(reader->Read1(&dv_version_major) && reader->Read1(&dv_version_minor) &&
reader->Read2(&profile_track_indication));
« no previous file with comments | « media/formats/mp4/dolby_vision.h ('k') | media/formats/mp4/dolby_vision_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698