| Index: ui/views/widget/widget.cc
|
| diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
|
| index cd015305e8382a24a240a61b89849451fd599702..6894b197b66319d0920b80496119bf3329ddda12 100644
|
| --- a/ui/views/widget/widget.cc
|
| +++ b/ui/views/widget/widget.cc
|
| @@ -15,6 +15,7 @@
|
| #include "ui/base/resource/resource_bundle.h"
|
| #include "ui/compositor/compositor.h"
|
| #include "ui/compositor/layer.h"
|
| +#include "ui/compositor/paint_context.h"
|
| #include "ui/events/event.h"
|
| #include "ui/events/event_utils.h"
|
| #include "ui/gfx/image/image_skia.h"
|
| @@ -1179,12 +1180,12 @@ bool Widget::OnNativeWidgetPaintAccelerated(const gfx::Rect& dirty_region) {
|
| return true;
|
| }
|
|
|
| -void Widget::OnNativeWidgetPaint(gfx::Canvas* canvas) {
|
| +void Widget::OnNativeWidgetPaint(const ui::PaintContext& context) {
|
| // On Linux Aura, we can get here during Init() because of the
|
| // SetInitialBounds call.
|
| if (!native_widget_initialized_)
|
| return;
|
| - GetRootView()->Paint(View::PaintContext(canvas, GetLayer()->PaintRect()));
|
| + GetRootView()->Paint(context);
|
| }
|
|
|
| int Widget::GetNonClientComponent(const gfx::Point& point) {
|
|
|