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

Unified Diff: ui/aura/window.h

Issue 1057873004: Pass a ui::PaintContext from ui::Layer to layer delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer-paintcontext: mac Created 5 years, 9 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/test/test_window_delegate.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.h
diff --git a/ui/aura/window.h b/ui/aura/window.h
index d0280bf730d6095fe6051222d50eef4140aacdaf..a8163a5d6117d23c5a42f46e5f073ad5ef24e3e5 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -368,10 +368,10 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
// Asks the delegate to paint the window and invokes PaintLayerlessChildren()
// to paint any children with no layers.
- void Paint(gfx::Canvas* canvas);
+ void Paint(const ui::PaintContext& context);
// Paints any layerless children to |canvas|.
- void PaintLayerlessChildren(gfx::Canvas* canvas);
+ void PaintLayerlessChildren(const ui::PaintContext& context);
// Gets a Window (either this one or a subwindow) containing |local_point|.
// If |return_tightest| is true, returns the tightest-containing (i.e.
@@ -463,7 +463,7 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
void OnWindowBoundsChanged(const gfx::Rect& old_bounds);
// Overridden from ui::LayerDelegate:
- void OnPaintLayer(gfx::Canvas* canvas) override;
+ void OnPaintLayer(const ui::PaintContext& context) override;
void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override;
base::Closure PrepareForLayerBoundsChange() override;
« no previous file with comments | « ui/aura/test/test_window_delegate.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698