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

Unified Diff: android_webview/browser/hardware_renderer.h

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Address comments 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
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/hardware_renderer.h
diff --git a/android_webview/browser/hardware_renderer.h b/android_webview/browser/hardware_renderer.h
index 511a8c5bf48fdb3b038f835bea53b8627632078d..a99fb73815057c5b0a1bd64867178cc78b7d4aff 100644
--- a/android_webview/browser/hardware_renderer.h
+++ b/android_webview/browser/hardware_renderer.h
@@ -73,7 +73,8 @@ class HardwareRenderer : public cc::CompositorFrameSinkSupportClient {
EGLContext last_egl_context_;
// Information about last delegated frame.
- gfx::Size frame_size_;
+ gfx::Size surface_size_;
+ float device_scale_factor_ = 0;
// Infromation from UI on last commit.
gfx::Vector2d scroll_offset_;
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698