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

Side by Side Diff: media/base/android/video_decoder_job.cc

Issue 1472943002: Refactor MediaCodecBridge to add support for NDK APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 5 years 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 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"
11 #include "media/base/android/media_drm_bridge.h" 10 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698