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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 2279403003: blimp: Hook up the layer holding the tab content into Chrome. (Closed)
Patch Set: add linux Created 4 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: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index 63cbe9f53e5679bef3c7a9846e7ef3c0b89e8e5a..4a6ca889594f888cf9d59923da980ee9a9d6affd 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -430,6 +430,10 @@ base::android::ScopedJavaLocalRef<jobject> TabAndroid::InitBlimpContents(
DCHECK(context);
blimp_contents_ = context->CreateBlimpContents();
DCHECK(blimp_contents_);
+
+ // Attach the layer holding the tab contents to the |content_layer_|.
+ content_layer_->InsertChild(blimp_contents_->GetNativeView()->GetLayer(), 0);
+
return blimp_contents_->GetJavaObject();
}
« blimp/client/core/contents/BUILD.gn ('K') | « blimp/client/public/contents/blimp_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698