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

Unified Diff: content/browser/web_contents/web_contents_view_android.cc

Issue 132233042: Enable the embedded L1/EME support in WebView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added ExternalVideoSurfaceDelegate.java. Created 6 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: content/browser/web_contents/web_contents_view_android.cc
diff --git a/content/browser/web_contents/web_contents_view_android.cc b/content/browser/web_contents/web_contents_view_android.cc
index fc024b759f3fe4b20adfd163a61313c32ab038dd..c3bdd8f791a56a40dfaef562112384ddba437e70 100644
--- a/content/browser/web_contents/web_contents_view_android.cc
+++ b/content/browser/web_contents/web_contents_view_android.cc
@@ -55,10 +55,20 @@ void WebContentsViewAndroid::SetContentViewCore(
}
#if defined(VIDEO_HOLE)
-void WebContentsViewAndroid::NotifyExternalSurface(
- int player_id, bool is_request, const gfx::RectF& rect) {
+void WebContentsViewAndroid::RequestExternalVideoSurface(int player_id) {
if (content_view_core_)
- content_view_core_->NotifyExternalSurface(player_id, is_request, rect);
+ content_view_core_->RequestExternalVideoSurface(player_id);
+}
Ted C 2014/02/14 18:32:52 still missing blank lines between the methods.
ycheo (away) 2014/02/18 08:35:56 Removed.
+void WebContentsViewAndroid::ReleaseExternalVideoSurface(int player_id) {
+ if (content_view_core_)
+ content_view_core_->ReleaseExternalVideoSurface(player_id);
+}
+void WebContentsViewAndroid::NotifyExternalVideoSurfacePositionChanged(
+ int player_id, const gfx::RectF& rect) {
+ if (content_view_core_) {
+ content_view_core_->NotifyExternalVideoSurfacePositionChanged(player_id,
+ rect);
+ }
}
#endif // defined(VIDEO_HOLE)

Powered by Google App Engine
This is Rietveld 408576698