| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/android/video_decoder_job.h" | 5 #include "media/base/android/video_decoder_job.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
| 10 #include "media/base/android/media_codec_bridge.h" |
| 10 #include "media/base/android/media_drm_bridge.h" | 11 #include "media/base/android/media_drm_bridge.h" |
| 11 #include "media/base/android/sdk_media_codec_bridge.h" | |
| 12 | 12 |
| 13 namespace media { | 13 namespace media { |
| 14 | 14 |
| 15 class VideoDecoderThread : public base::Thread { | 15 class VideoDecoderThread : public base::Thread { |
| 16 public: | 16 public: |
| 17 VideoDecoderThread() : base::Thread("MediaSource_VideoDecoderThread") { | 17 VideoDecoderThread() : base::Thread("MediaSource_VideoDecoderThread") { |
| 18 Start(); | 18 Start(); |
| 19 } | 19 } |
| 20 }; | 20 }; |
| 21 | 21 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 return (output_width_ != prev_output_width) || | 157 return (output_width_ != prev_output_width) || |
| 158 (output_height_ != prev_output_height); | 158 (output_height_ != prev_output_height); |
| 159 } | 159 } |
| 160 | 160 |
| 161 bool VideoDecoderJob::IsProtectedSurfaceRequired() { | 161 bool VideoDecoderJob::IsProtectedSurfaceRequired() { |
| 162 return is_content_encrypted() && drm_bridge() && | 162 return is_content_encrypted() && drm_bridge() && |
| 163 drm_bridge()->IsProtectedSurfaceRequired(); | 163 drm_bridge()->IsProtectedSurfaceRequired(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace media | 166 } // namespace media |
| OLD | NEW |