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

Side by Side Diff: media/formats/webm/webm_video_client.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 unified diff | Download patch
« no previous file with comments | « media/formats/webm/webm_video_client.h ('k') | media/gpu/video_encode_accelerator_unittest.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 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 "media/formats/webm/webm_video_client.h" 5 #include "media/formats/webm/webm_video_client.h"
6 6
7 #include "media/base/video_decoder_config.h" 7 #include "media/base/video_decoder_config.h"
8 #include "media/formats/webm/webm_constants.h" 8 #include "media/formats/webm/webm_constants.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 WebMVideoClient::WebMVideoClient(const scoped_refptr<MediaLog>& media_log) 12 WebMVideoClient::WebMVideoClient(MediaLog* media_log) : media_log_(media_log) {
13 : media_log_(media_log) {
14 Reset(); 13 Reset();
15 } 14 }
16 15
17 WebMVideoClient::~WebMVideoClient() { 16 WebMVideoClient::~WebMVideoClient() {
18 } 17 }
19 18
20 void WebMVideoClient::Reset() { 19 void WebMVideoClient::Reset() {
21 pixel_width_ = -1; 20 pixel_width_ = -1;
22 pixel_height_ = -1; 21 pixel_height_ = -1;
23 crop_bottom_ = -1; 22 crop_bottom_ = -1;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // Accept binary fields we don't care about for now. 172 // Accept binary fields we don't care about for now.
174 return true; 173 return true;
175 } 174 }
176 175
177 bool WebMVideoClient::OnFloat(int id, double val) { 176 bool WebMVideoClient::OnFloat(int id, double val) {
178 // Accept float fields we don't care about for now. 177 // Accept float fields we don't care about for now.
179 return true; 178 return true;
180 } 179 }
181 180
182 } // namespace media 181 } // namespace media
OLDNEW
« no previous file with comments | « media/formats/webm/webm_video_client.h ('k') | media/gpu/video_encode_accelerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698