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

Unified Diff: components/exo/pointer.h

Issue 2944063002: exo: Fix cursor scaling for 1.25 DSF (Closed)
Patch Set: Restore DCHECK Created 3 years, 6 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 | components/exo/pointer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/pointer.h
diff --git a/components/exo/pointer.h b/components/exo/pointer.h
index 6dc1a0ba03e6c9becdf009948c5c68cf902d3074..c64d1af0ffa79a091d631831bcd4f61f3060fce5 100644
--- a/components/exo/pointer.h
+++ b/components/exo/pointer.h
@@ -111,10 +111,13 @@ class Pointer : public ui::EventHandler,
// The current cursor.
ui::Cursor cursor_;
- // Scale at which cursor snapshot is captured. The resulting bitmap is scaled
- // on displays whose DSF does not match this scale.
+ // Scale at which cursor snapshot is captured.
float capture_scale_;
+ // Density ratio of the cursor snapshot. The bitmap is scaled on displays with
+ // a different ratio.
+ float capture_ratio_;
+
// Source used for cursor capture copy output requests.
const base::UnguessableToken cursor_capture_source_id_;
« no previous file with comments | « no previous file | components/exo/pointer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698