| Index: ui/views/view.h
|
| diff --git a/ui/views/view.h b/ui/views/view.h
|
| index 6b45c6313baf3bee9f08047d3891e28b35de22d1..327243e9b16e55d430199902418176115d4ea15f 100644
|
| --- a/ui/views/view.h
|
| +++ b/ui/views/view.h
|
| @@ -323,6 +323,11 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
|
| // . SetPaintToLayer(true) has been invoked.
|
| // View creates the Layer only when it exists in a Widget with a non-NULL
|
| // Compositor.
|
| + // TODO(mohsen): Consider making this robust against multiple places changing
|
| + // it at the same time. For example, class A might set this to true, then
|
| + // class B sets it to true. Then if class A sets it to false, the layer would
|
| + // be destroyed and class B might run into problems assuming it is still
|
| + // painting to layer.
|
| void SetPaintToLayer(bool paint_to_layer);
|
|
|
| // Overridden from ui::LayerOwner:
|
|
|