diff options
author | Brian Osman <brianosman@google.com> | 2018-07-24 18:01:53 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-30 15:00:25 +0000 |
commit | b63f6005c1a72758a976984b1b00de4b1e66418b (patch) | |
tree | 0741e36b287f01eda554144004fed52dd2894753 /tools/viewer/StatsLayer.h | |
parent | 069b2cf19f1feedefa17e92e7418670f3a54ea09 (diff) |
Add 'u' to zoom stats display on high DPI devices
Still need to connect this to ImGui, but this is already useful
Bug: skia:
Change-Id: I925c7a9d6236cb2d865d45d6a68a5709bf2e3df7
Reviewed-on: https://skia-review.googlesource.com/143158
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tools/viewer/StatsLayer.h')
-rw-r--r-- | tools/viewer/StatsLayer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/viewer/StatsLayer.h b/tools/viewer/StatsLayer.h index a99bd43a99..b888517e2c 100644 --- a/tools/viewer/StatsLayer.h +++ b/tools/viewer/StatsLayer.h @@ -26,6 +26,8 @@ public: void onPaint(SkCanvas* canvas) override; + void setDisplayScale(float scale) { fDisplayScale = scale; } + private: static const int kMeasurementCount = 1 << 6; // should be power of 2 for fast mod struct TimerData { @@ -38,6 +40,7 @@ private: int fCurrentMeasurement; double fCumulativeMeasurementTime; int fCumulativeMeasurementCount; + float fDisplayScale; }; #endif |