| Index: components/exo/surface.h
|
| diff --git a/components/exo/surface.h b/components/exo/surface.h
|
| index 744587db667507e671e4996c4dfc6d5276691dc9..a3706787e488021f0d164a800f35417e2bcdaa6f 100644
|
| --- a/components/exo/surface.h
|
| +++ b/components/exo/surface.h
|
| @@ -21,6 +21,7 @@
|
| #include "third_party/skia/include/core/SkXfermode.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/compositor/compositor.h"
|
| +#include "ui/compositor/layer_owner_delegate.h"
|
| #include "ui/gfx/geometry/rect.h"
|
|
|
| namespace base {
|
| @@ -88,7 +89,8 @@
|
|
|
| // This class represents a rectangular area that is displayed on the screen.
|
| // It has a location, size and pixel contents.
|
| -class Surface : public ui::ContextFactoryObserver {
|
| +class Surface : public ui::LayerOwnerDelegate,
|
| + public ui::ContextFactoryObserver {
|
| public:
|
| using PropertyDeallocator = void (*)(int64_t value);
|
|
|
| @@ -207,6 +209,9 @@
|
| bool HasPendingDamageForTesting(const gfx::Rect& damage) const {
|
| return pending_damage_.contains(gfx::RectToSkIRect(damage));
|
| }
|
| +
|
| + // Overridden from ui::LayerOwnerDelegate:
|
| + void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override;
|
|
|
| // Overridden from ui::ContextFactoryObserver.
|
| void OnLostResources() override;
|
|
|