diff options
author | 2024-02-27 00:41:19 +0000 | |
---|---|---|
committer | 2024-02-29 02:17:13 +0000 | |
commit | 611aa05ba8df4dad11a86c522ee6a932e8114da1 (patch) | |
tree | acd908104a1ef04bf5049e14a09553cb98dae32c /libs/hwui/FrameInfoVisualizer.cpp | |
parent | 6f918e27d07788d9786029e4961f72fd0bfb9720 (diff) |
PointerIcon: Create bitmap using density-aware constructor
Instead of manually setting the density of a Bitmap that we create
(which looks like we're working around Bitmap's functionality), use
Bitmap's density-aware constructor that takes a DisplayMetrics object.
It essentially provides the same functionality as setting the density,
but since it's wrapped up in a supported constructor, it increases
readability and removes the need for us to explain what we're doing.
Bug: 305193969
Test: Presubmit
Change-Id: I2b4bdc60e2744a89c8154bd9359de6254a810426
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions