| Index: ui/compositor/layer.h
|
| diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
|
| index d19fe073e9d86c3690b17db99d151d4f7a849532..33b42a1b7c025eda0f80d25905e336c2add47ae5 100644
|
| --- a/ui/compositor/layer.h
|
| +++ b/ui/compositor/layer.h
|
| @@ -216,6 +216,11 @@ class COMPOSITOR_EXPORT Layer :
|
|
|
| float device_scale_factor() const { return device_scale_factor_; }
|
|
|
| + // Forces a render surface to be used on this layer. This has no positive
|
| + // impact, and is only used for benchmarking/testing purpose.
|
| + void SetForceRenderSurface(bool force);
|
| + bool force_render_surface() const { return force_render_surface_; }
|
| +
|
| private:
|
| // TODO(vollick): Eventually, if a non-leaf node has an opacity of less than
|
| // 1.0, we'll render to a separate texture, and then apply the alpha.
|
| @@ -279,6 +284,8 @@ class COMPOSITOR_EXPORT Layer :
|
| // Visibility of this layer. See SetVisible/IsDrawn for more details.
|
| bool visible_;
|
|
|
| + bool force_render_surface_;
|
| +
|
| bool fills_bounds_opaquely_;
|
|
|
| // If true the layer is always up to date.
|
|
|