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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 171763002: Refactor device scale factor on Mac and fix CoreAnimation bug (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up Created 6 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/render_widget_host_view_mac.h
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
index aeab6e221605583b0d02d219457c485f4b7221ab..3fa046cd26fd3691b94ffbf9b3347bc788462457 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
@@ -479,7 +479,15 @@ class RenderWidgetHostViewMac : public RenderWidgetHostViewBase,
int window_number() const;
- float scale_factor() const;
+ // The scale factor for the screen that the view is currently on.
+ float ViewScaleFactor() const;
+
+ // Update the scale factor for the backing store and for any CALayers.
+ void UpdateBackingStoreScaleFactor();
+
+ // The scale factor of the backing store and all CALayers. Note that this is
+ // updated based on ViewScaleFactor with some delay.
+ float backing_store_scale_factor_;
void AddPendingLatencyInfo(
const std::vector<ui::LatencyInfo>& latency_info);

Powered by Google App Engine
This is Rietveld 408576698