summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2024-02-27 00:41:19 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2024-02-29 02:17:13 +0000
commit611aa05ba8df4dad11a86c522ee6a932e8114da1 (patch)
treeacd908104a1ef04bf5049e14a09553cb98dae32c /libs/hwui/FrameInfoVisualizer.cpp
parent6f918e27d07788d9786029e4961f72fd0bfb9720 (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