Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: ui/aura/window_delegate.h

Issue 10910242: Makes copying layers clone external textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {}
« ui/aura/window.cc ('K') | « ui/aura/window.cc ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698