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

Unified Diff: webkit/media/android/webmediaplayer_android.h

Issue 12443003: Implement out-of-band video compositing on Android: Step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 7 years, 10 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
Index: webkit/media/android/webmediaplayer_android.h
diff --git a/webkit/media/android/webmediaplayer_android.h b/webkit/media/android/webmediaplayer_android.h
index 58d0d779eb0291b198dd82faaedc66f69a3d9d47..e591dad4f6363adb137b8e3942f7f62cd3e21f55 100644
--- a/webkit/media/android/webmediaplayer_android.h
+++ b/webkit/media/android/webmediaplayer_android.h
@@ -174,6 +174,12 @@ class WebMediaPlayerAndroid
WebMediaPlayerManagerAndroid* manager() const { return manager_; }
+ // Request whether the player needs external surface for rendering.
+ void SetNeedsExternalSurface(bool needs_external_surface);
+
+ // Request external surface for out-of-band composition.
+ virtual void RequestExternalSurface() = 0;
+
private:
void ReallocateVideoFrame();
@@ -238,6 +244,9 @@ class WebMediaPlayerAndroid
// frame available. It should be initialized on the compositor thread.
scoped_ptr<StreamTextureProxy> stream_texture_proxy_;
+ // Whether media player needs external surface.
+ bool needs_external_surface_;
+
DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698