| Index: ui/compositor/paint_context.h
|
| diff --git a/ui/compositor/paint_context.h b/ui/compositor/paint_context.h
|
| index bc17c50f46bd3b00cee3ce9e83229b04704d12a9..04095073254d62622858a570d6ffdd14ddc6423e 100644
|
| --- a/ui/compositor/paint_context.h
|
| +++ b/ui/compositor/paint_context.h
|
| @@ -46,6 +46,8 @@ class COMPOSITOR_EXPORT PaintContext {
|
| // invalid.
|
| bool CanCheckInvalid() const { return !invalidation_.IsEmpty(); }
|
|
|
| + float device_scale_factor() const { return device_scale_factor_; }
|
| +
|
| // When true, the |bounds| touches an invalidated area, so should be
|
| // re-painted. When false, re-painting can be skipped. Bounds should be in
|
| // the local space with offsets up to the painting root in the PaintContext.
|
|
|