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

Side by Side Diff: media/mojo/services/mojo_video_decoder.cc

Issue 2018453002: Remove unused variables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove more vars Created 4 years, 7 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/mojo/services/mojo_video_decoder.h" 5 #include "media/mojo/services/mojo_video_decoder.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "media/base/decoder_buffer.h" 13 #include "media/base/decoder_buffer.h"
14 #include "media/base/video_frame.h" 14 #include "media/base/video_frame.h"
15 #include "media/mojo/common/media_type_converters.h" 15 #include "media/mojo/common/media_type_converters.h"
16 16
17 namespace media { 17 namespace media {
18 18
19 MojoVideoDecoder::MojoVideoDecoder( 19 MojoVideoDecoder::MojoVideoDecoder(
20 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 20 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
21 GpuVideoAcceleratorFactories* gpu_factories, 21 GpuVideoAcceleratorFactories* gpu_factories,
22 mojom::VideoDecoderPtr remote_decoder) 22 mojom::VideoDecoderPtr remote_decoder)
23 : task_runner_(task_runner), 23 : task_runner_(task_runner),
24 gpu_factories_(gpu_factories), 24 gpu_factories_(gpu_factories),
25 remote_decoder_info_(remote_decoder.PassInterface()), 25 remote_decoder_info_(remote_decoder.PassInterface()),
26 binding_(this) { 26 binding_(this) {
27 (void)gpu_factories_;
27 DVLOG(1) << __FUNCTION__; 28 DVLOG(1) << __FUNCTION__;
28 } 29 }
29 30
30 MojoVideoDecoder::~MojoVideoDecoder() { 31 MojoVideoDecoder::~MojoVideoDecoder() {
31 DVLOG(1) << __FUNCTION__; 32 DVLOG(1) << __FUNCTION__;
32 } 33 }
33 34
34 std::string MojoVideoDecoder::GetDisplayName() const { 35 std::string MojoVideoDecoder::GetDisplayName() const {
35 return "MojoVideoDecoder"; 36 return "MojoVideoDecoder";
36 } 37 }
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 if (!init_cb_.is_null()) 186 if (!init_cb_.is_null())
186 base::ResetAndReturn(&init_cb_).Run(false); 187 base::ResetAndReturn(&init_cb_).Run(false);
187 // TODO(sandersd): If there is a pending reset, should these be aborted? 188 // TODO(sandersd): If there is a pending reset, should these be aborted?
188 if (!decode_cb_.is_null()) 189 if (!decode_cb_.is_null())
189 base::ResetAndReturn(&decode_cb_).Run(DecodeStatus::DECODE_ERROR); 190 base::ResetAndReturn(&decode_cb_).Run(DecodeStatus::DECODE_ERROR);
190 if (!reset_cb_.is_null()) 191 if (!reset_cb_.is_null())
191 base::ResetAndReturn(&reset_cb_).Run(); 192 base::ResetAndReturn(&reset_cb_).Run();
192 } 193 }
193 194
194 } // namespace media 195 } // namespace media
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_service_launcher.h ('k') | media/renderers/default_renderer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698