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

Unified Diff: media/base/android/java/src/org/chromium/media/MediaCodecBridge.java

Issue 550503002: Suppress build time warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/java/src/org/chromium/media/MediaCodecBridge.java
diff --git a/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java b/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java
index 2fdd0f00a0a4676a7a9bffe13fbf8f002ec6aeb5..bf66aa389479c15944876acd463e0a2253652ea2 100644
--- a/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java
+++ b/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java
@@ -153,6 +153,7 @@ class MediaCodecBridge {
/**
* Get a list of supported android codec mimes.
*/
+ @SuppressWarnings("deprecation")
@CalledByNative
private static CodecInfo[] getCodecsInfo() {
// Return the first (highest-priority) codec for each MIME type.
@@ -180,6 +181,7 @@ class MediaCodecBridge {
return codecInfos.toArray(new CodecInfo[codecInfos.size()]);
}
+ @SuppressWarnings("deprecation")
private static String getDecoderNameForMime(String mime) {
int count = MediaCodecList.getCodecCount();
for (int i = 0; i < count; ++i) {
@@ -268,6 +270,7 @@ class MediaCodecBridge {
}
}
+ @SuppressWarnings("deprecation")
@CalledByNative
private boolean start() {
try {
@@ -362,6 +365,7 @@ class MediaCodecBridge {
return mOutputBuffers != null ? mOutputBuffers[0].capacity() : -1;
}
+ @SuppressWarnings("deprecation")
@CalledByNative
private boolean getOutputBuffers() {
try {
@@ -435,6 +439,7 @@ class MediaCodecBridge {
}
}
+ @SuppressWarnings("deprecation")
@CalledByNative
private DequeueOutputResult dequeueOutputBuffer(long timeoutUs) {
MediaCodec.BufferInfo info = new MediaCodec.BufferInfo();
@@ -610,6 +615,7 @@ class MediaCodecBridge {
return mAudioTrack.getPlaybackHeadPosition();
}
+ @SuppressWarnings("deprecation")
@CalledByNative
private void setVolume(double volume) {
if (mAudioTrack != null) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698