| Index: ui/aura/test/test_window_delegate.cc
|
| diff --git a/ui/aura/test/test_window_delegate.cc b/ui/aura/test/test_window_delegate.cc
|
| index 89918caa4cad79974bac5642db5d60d0e47f8327..4b0f8b77a03ded1928c71e9ca7bac16e1e2daca2 100644
|
| --- a/ui/aura/test/test_window_delegate.cc
|
| +++ b/ui/aura/test/test_window_delegate.cc
|
| @@ -7,7 +7,7 @@
|
| #include "base/strings/stringprintf.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/base/hit_test.h"
|
| -#include "ui/compositor/paint_context.h"
|
| +#include "ui/compositor/paint_recorder.h"
|
| #include "ui/events/event.h"
|
| #include "ui/gfx/canvas.h"
|
| #include "ui/gfx/path.h"
|
| @@ -122,7 +122,8 @@ void ColorTestWindowDelegate::OnWindowDestroyed(Window* window) {
|
| }
|
|
|
| void ColorTestWindowDelegate::OnPaint(const ui::PaintContext& context) {
|
| - context.canvas()->DrawColor(color_, SkXfermode::kSrc_Mode);
|
| + ui::PaintRecorder recorder(context);
|
| + recorder.canvas()->DrawColor(color_, SkXfermode::kSrc_Mode);
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|