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

Unified Diff: android_webview/browser/aw_contents.cc

Issue 2842693005: Store physical backing size in ViewAndroid (Closed)
Patch Set: no UpdateLayerBounds Created 3 years, 7 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: android_webview/browser/aw_contents.cc
diff --git a/android_webview/browser/aw_contents.cc b/android_webview/browser/aw_contents.cc
index 86143f8b865c218aea07b1865b4d3dc8fa171cf3..53e347e0616706c4afe3a97b40f76b2455358afb 100644
--- a/android_webview/browser/aw_contents.cc
+++ b/android_webview/browser/aw_contents.cc
@@ -865,6 +865,8 @@ void AwContents::OnSizeChanged(JNIEnv* env,
int ow,
int oh) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
+ gfx::Size size(w, h);
+ web_contents_->GetNativeView()->OnPhysicalBackingSizeChanged(size);
browser_view_renderer_.OnSizeChanged(w, h);
}

Powered by Google App Engine
This is Rietveld 408576698