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

Unified Diff: ui/aura/window_delegate.h

Issue 23444051: Move the content-dependent RecreateLayer logic from aura::Window to RWHVA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better comments Created 7 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
« no previous file with comments | « ui/aura/window.cc ('k') | ui/keyboard/keyboard_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_delegate.h
diff --git a/ui/aura/window_delegate.h b/ui/aura/window_delegate.h
index bcbd2a6984ccc758c48607fc853f4b7fbc981402..6bea65ddc706e0ffe4a6adfb1078b7d4deb20c63 100644
--- a/ui/aura/window_delegate.h
+++ b/ui/aura/window_delegate.h
@@ -23,6 +23,7 @@ class Size;
namespace ui {
class GestureEvent;
class KeyEvent;
+class Layer;
class MouseEvent;
class Texture;
class TouchEvent;
@@ -95,9 +96,12 @@ 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;
+ // Called from RecreateLayer() after the new layer was created. old_layer is
+ // the layer that will be returned to the caller of RecreateLayer, new_layer
+ // will be the layer now used on the Window. The implementation only has to do
+ // anything if the layer has external content (SetExternalTexture /
+ // SetTextureMailbox / SetDelegatedFrame was called).
+ virtual void DidRecreateLayer(ui::Layer* old_layer, ui::Layer* new_layer) = 0;
protected:
virtual ~WindowDelegate() {}
« no previous file with comments | « ui/aura/window.cc ('k') | ui/keyboard/keyboard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698