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

Unified Diff: media/base/android/sdk_media_codec_bridge.h

Issue 2461073002: Use MediaCodec.setOutputSurface() for fullscreen transitions on M. (Closed)
Patch Set: Address comments. Created 4 years, 1 month 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
Index: media/base/android/sdk_media_codec_bridge.h
diff --git a/media/base/android/sdk_media_codec_bridge.h b/media/base/android/sdk_media_codec_bridge.h
index 4a1ce0aece32637efa1632b0f796b2b383d41767..d1841e3b942d05836a6f79be2a4f8396f5b6c4f3 100644
--- a/media/base/android/sdk_media_codec_bridge.h
+++ b/media/base/android/sdk_media_codec_bridge.h
@@ -164,6 +164,10 @@ class MEDIA_EXPORT VideoCodecBridge : public SdkMediaCodecBridge {
// the new size.
bool IsAdaptivePlaybackSupported(int width, int height);
+ // Changes the output surface for the MediaCodec. May only be used on API
+ // level 23 and higher (Marshmallow).
+ bool SetSurface(jobject surface);
+
// Test-only method to set the return value of IsAdaptivePlaybackSupported().
// Without this function, the return value of that function will be device
// dependent. If |adaptive_playback_supported| is equal to 0, the return value
« no previous file with comments | « media/base/android/java/src/org/chromium/media/MediaCodecBridge.java ('k') | media/base/android/sdk_media_codec_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698