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

Unified Diff: ui/views/widget/native_widget_delegate.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/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_delegate.h
diff --git a/ui/views/widget/native_widget_delegate.h b/ui/views/widget/native_widget_delegate.h
index 2e87e58869b8c2a358716478e59f6d78fe0dd655..7c75e1b4792dda0e4ba7e8780dc5e693e89e7734 100644
--- a/ui/views/widget/native_widget_delegate.h
+++ b/ui/views/widget/native_widget_delegate.h
@@ -22,8 +22,9 @@ class GestureEvent;
class KeyEvent;
class Layer;
class MouseEvent;
-class TouchEvent;
+class PaintContext;
class ScrollEvent;
+class TouchEvent;
}
namespace views {
@@ -110,9 +111,9 @@ class VIEWS_EXPORT NativeWidgetDelegate {
virtual bool OnNativeWidgetPaintAccelerated(
const gfx::Rect& dirty_region) = 0;
- // Paints the rootview in the canvas. This will also refresh the compositor
- // tree if necessary when accelerated painting is enabled.
- virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) = 0;
+ // Paints the rootview in the context. This will also refresh the compositor
+ // tree if necessary.
+ virtual void OnNativeWidgetPaint(const ui::PaintContext& context) = 0;
// Returns the non-client component (see ui/base/hit_test.h) containing
// |point|, in client coordinates.
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698