| Index: cc/test/fake_scrollbar.cc
|
| diff --git a/cc/test/fake_scrollbar.cc b/cc/test/fake_scrollbar.cc
|
| index 58a04517cddf0a4971777bc96198af6344c33624..c0ab614cc2602932036f9d313bf609d0f58c1ef5 100644
|
| --- a/cc/test/fake_scrollbar.cc
|
| +++ b/cc/test/fake_scrollbar.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "cc/test/fake_scrollbar.h"
|
|
|
| +#include "skia/ext/cdl_canvas.h"
|
| +#include "skia/ext/cdl_paint.h"
|
| #include "third_party/skia/include/core/SkCanvas.h"
|
| #include "ui/gfx/skia_util.h"
|
|
|
| @@ -71,18 +73,18 @@ bool FakeScrollbar::NeedsPaintPart(ScrollbarPart part) const {
|
| return needs_paint_track_;
|
| }
|
|
|
| -void FakeScrollbar::PaintPart(SkCanvas* canvas,
|
| - ScrollbarPart part,
|
| - const gfx::Rect& content_rect) {
|
| +void FakeScrollbar::PaintPart(CdlCanvas* canvas,
|
| + ScrollbarPart part,
|
| + const gfx::Rect& content_rect) {
|
| if (!paint_)
|
| return;
|
|
|
| // Fill the scrollbar with a different color each time.
|
| fill_color_++;
|
| - SkPaint paint;
|
| + CdlPaint paint;
|
| paint.setAntiAlias(false);
|
| paint.setColor(paint_fill_color());
|
| - paint.setStyle(SkPaint::kFill_Style);
|
| + paint.setStyle(CdlPaint::kFill_Style);
|
|
|
| // Emulate the how the real scrollbar works by using scrollbar's rect for
|
| // TRACK and the given content_rect for the THUMB
|
|
|