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

Unified Diff: android_webview/native/aw_contents.cc

Issue 2842693005: Store physical backing size in ViewAndroid (Closed)
Patch Set: no client Created 3 years, 8 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/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index f357a4a9dcb3a43408061b085ffcd5b795f1933e..1692a0ad804ba0c9151c3c541bc3f6d6b58e872e 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -867,6 +867,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