feat: add displayFrequency to Display object (#26472)

This commit is contained in:
Shelley Vohr 2020-11-16 15:33:51 -08:00 committed by GitHub
parent f65db1df79
commit 6f6c1b7ca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -151,6 +151,7 @@ v8::Local<v8::Value> Converter<display::Display>::ToV8(
dict.Set("colorSpace", val.color_spaces().GetRasterColorSpace().ToString());
dict.Set("depthPerComponent", val.depth_per_component());
dict.Set("size", val.size());
dict.Set("displayFrequency", val.display_frequency());
dict.Set("workAreaSize", val.work_area_size());
dict.Set("scaleFactor", val.device_scale_factor());
dict.Set("rotation", val.RotationAsDegree());