Index: ui/aura/window_delegate.h |
diff --git a/ui/aura/window_delegate.h b/ui/aura/window_delegate.h |
index ba25a1288e9c9682de8fe397a0a6455fc4502c75..fb98de77f720ed919675d765d261d48fbc882f43 100644 |
--- a/ui/aura/window_delegate.h |
+++ b/ui/aura/window_delegate.h |
@@ -6,6 +6,7 @@ |
#define UI_AURA_WINDOW_DELEGATE_H_ |
#include "base/compiler_specific.h" |
+#include "base/memory/ref_counted.h" |
#include "ui/aura/aura_export.h" |
#include "ui/base/events/event_constants.h" |
#include "ui/base/events/event_handler.h" |
@@ -23,6 +24,7 @@ namespace ui { |
class GestureEvent; |
class KeyEvent; |
class MouseEvent; |
+class Texture; |
class TouchEvent; |
} |
@@ -94,6 +96,10 @@ class AURA_EXPORT WindowDelegate : public ui::EventHandler { |
// above returns true. |
virtual void GetHitTestMask(gfx::Path* mask) const = 0; |
+ // Called from RecreateLayer() if the layer the window is associated with has |
+ // an external texture. |
+ virtual scoped_refptr<ui::Texture> CopyTexture() = 0; |
+ |
protected: |
virtual ~WindowDelegate() {} |