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

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: comments, make compositor non-singleton 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 30d1190aa74d390e60804e765823eb62f95404a1..50f4274b3cb0b55e12480f3e50e17d210a8741aa 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1433,6 +1433,16 @@ void WebContentsImpl::RequestMediaAccessPermission(
callback.Run(content::MediaStreamDevices());
}
+void WebContentsImpl::AttachLayer(WebKit::WebLayer* layer) {
+ if (delegate_)
+ delegate_->AttachLayer(this, layer);
+}
+
+void WebContentsImpl::RemoveLayer(WebKit::WebLayer* layer) {
+ if (delegate_)
+ delegate_->RemoveLayer(this, layer);
+}
+
void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) {
preferred_size_ = pref_size;
if (delegate_)

Powered by Google App Engine
This is Rietveld 408576698