aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer/StatsLayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/viewer/StatsLayer.h')
-rw-r--r--tools/viewer/StatsLayer.h3
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