Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: content/browser/renderer_host/

Issue 12328080: Plumb physical backing size from RWHV to renderer CC. (Closed) Base URL:
Patch Set: Adjust for call renamed to GetViewportSizePix() Created 7 years, 10 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/renderer_host/
diff --git a/content/browser/renderer_host/ b/content/browser/renderer_host/
index 96373173831c255da3aacce104bfc8d618fc552c..de560f1ca484daf711d5c245241510b87cf09d67 100644
--- a/content/browser/renderer_host/
+++ b/content/browser/renderer_host/
@@ -280,6 +280,13 @@ gfx::Rect RenderWidgetHostViewAndroid::GetViewBounds() const {
return gfx::Rect(content_view_core_->GetViewportSizeDip());
+gfx::Size RenderWidgetHostViewAndroid::GetPhysicalBackingSize() const {
+ if (!content_view_core_)
+ return gfx::Size();
+ return content_view_core_->GetViewportSizePix();
void RenderWidgetHostViewAndroid::UpdateCursor(const WebCursor& cursor) {
// There are no cursors on Android.

Powered by Google App Engine
This is Rietveld 408576698