| Index: ui/compositor/compositor.h
|
| diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
|
| index b40c47e4b6e736690d8f5c19fdf440734efbb208..f482e69573062bd6267fb614e9bbef879ed1a268 100644
|
| --- a/ui/compositor/compositor.h
|
| +++ b/ui/compositor/compositor.h
|
| @@ -188,7 +188,8 @@ class COMPOSITOR_EXPORT Compositor
|
| ui::ContextFactory* context_factory,
|
| ui::ContextFactoryPrivate* context_factory_private,
|
| scoped_refptr<base::SingleThreadTaskRunner> task_runner,
|
| - bool enable_surface_synchronization);
|
| + bool enable_surface_synchronization,
|
| + bool enable_pixel_canvas);
|
| ~Compositor() override;
|
|
|
| ui::ContextFactory* context_factory() { return context_factory_; }
|
| @@ -378,6 +379,9 @@ class COMPOSITOR_EXPORT Compositor
|
| allow_locks_to_extend_timeout_ = allowed;
|
| }
|
|
|
| + // If true, all paint commands are recorded at pixel size instead of DIP.
|
| + bool is_pixel_canvas() const { return is_pixel_canvas_; }
|
| +
|
| private:
|
| friend class base::RefCounted<Compositor>;
|
|
|
| @@ -438,6 +442,8 @@ class COMPOSITOR_EXPORT Compositor
|
| base::TimeTicks scheduled_timeout_;
|
| // If true, the |scheduled_timeout_| might be recalculated and extended.
|
| bool allow_locks_to_extend_timeout_;
|
| + // If true, all paint commands are recorded at pixel size instead of DIP.
|
| + const bool is_pixel_canvas_;
|
|
|
| base::WeakPtrFactory<Compositor> weak_ptr_factory_;
|
| base::WeakPtrFactory<Compositor> lock_timeout_weak_ptr_factory_;
|
|
|