| 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.
|
|
|