| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base/filters.h" | 5 #include "media/base/filters.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| 11 void ResetAndRunCB(FilterStatusCB* cb, PipelineStatus status) { | |
| 12 DCHECK(!cb->is_null()); | |
| 13 FilterStatusCB tmp_cb(*cb); | |
| 14 cb->Reset(); | |
| 15 tmp_cb.Run(status); | |
| 16 } | |
| 17 | |
| 18 void ResetAndRunCB(base::Closure* cb) { | |
| 19 DCHECK(!cb->is_null()); | |
| 20 base::Closure tmp_cb(*cb); | |
| 21 cb->Reset(); | |
| 22 tmp_cb.Run(); | |
| 23 } | |
| 24 | |
| 25 Filter::Filter() : host_(NULL) {} | 11 Filter::Filter() : host_(NULL) {} |
| 26 | 12 |
| 27 Filter::~Filter() {} | 13 Filter::~Filter() {} |
| 28 | 14 |
| 29 void Filter::clear_host() { | 15 void Filter::clear_host() { |
| 30 DCHECK(host_); | 16 DCHECK(host_); |
| 31 host_ = NULL; | 17 host_ = NULL; |
| 32 } | 18 } |
| 33 | 19 |
| 34 void Filter::set_host(FilterHost* host) { | 20 void Filter::set_host(FilterHost* host) { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 61 |
| 76 VideoDecoder::~VideoDecoder() {} | 62 VideoDecoder::~VideoDecoder() {} |
| 77 | 63 |
| 78 bool VideoDecoder::HasAlpha() const { | 64 bool VideoDecoder::HasAlpha() const { |
| 79 return false; | 65 return false; |
| 80 } | 66 } |
| 81 | 67 |
| 82 void VideoDecoder::PrepareForShutdownHack() {} | 68 void VideoDecoder::PrepareForShutdownHack() {} |
| 83 | 69 |
| 84 } // namespace media | 70 } // namespace media |
| OLD | NEW |