| Index: ui/aura_extra/image_window_delegate.cc
|
| diff --git a/ui/aura_extra/image_window_delegate.cc b/ui/aura_extra/image_window_delegate.cc
|
| index 138e9611dee3a342a5685158384ea0a3f6ea5428..8f04a1a4971ce615651a7f281b02794f2a3c9770 100644
|
| --- a/ui/aura_extra/image_window_delegate.cc
|
| +++ b/ui/aura_extra/image_window_delegate.cc
|
| @@ -7,6 +7,7 @@
|
| #include "ui/base/cursor/cursor.h"
|
| #include "ui/base/hit_test.h"
|
| #include "ui/compositor/compositor.h"
|
| +#include "ui/compositor/paint_context.h"
|
| #include "ui/gfx/canvas.h"
|
| #include "ui/gfx/geometry/rect.h"
|
| #include "ui/gfx/geometry/size.h"
|
| @@ -69,7 +70,8 @@ bool ImageWindowDelegate::CanFocus() {
|
| void ImageWindowDelegate::OnCaptureLost() {
|
| }
|
|
|
| -void ImageWindowDelegate::OnPaint(gfx::Canvas* canvas) {
|
| +void ImageWindowDelegate::OnPaint(const ui::PaintContext& context) {
|
| + gfx::Canvas* canvas = context.canvas();
|
| if (background_color_ != SK_ColorTRANSPARENT &&
|
| (image_.IsEmpty() || size_mismatch_ || !offset_.IsZero())) {
|
| canvas->DrawColor(background_color_);
|
|
|