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

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

Issue 10828356: Very basic Android browser-side compositing support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ifdef Attach/RemoveLayer API Created 8 years, 4 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_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index c8e64f16b1c2294a75409046f288ba16b05ae083..b4b831cfe288b15d0ac530c9ea92ecfd66d20b8b 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1435,6 +1435,18 @@ void WebContentsImpl::RequestMediaAccessPermission(
callback.Run(content::MediaStreamDevices());
}
+#if defined(OS_ANDROID)
+void WebContentsImpl::AttachLayer(WebKit::WebLayer* layer) {
+ if (delegate_)
+ delegate_->AttachLayer(this, layer);
+}
+
+void WebContentsImpl::RemoveLayer(WebKit::WebLayer* layer) {
+ if (delegate_)
+ delegate_->RemoveLayer(this, layer);
+}
+#endif
+
void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) {
preferred_size_ = pref_size;
if (delegate_)

Powered by Google App Engine
This is Rietveld 408576698