Chromium Code Reviews| Index: cc/test/skia_common.cc |
| diff --git a/cc/test/skia_common.cc b/cc/test/skia_common.cc |
| index ec399087f54e8ee19f2722150eec95d0a12bdc7d..320bbdd1154414e879953ed015638f5474f9d359 100644 |
| --- a/cc/test/skia_common.cc |
| +++ b/cc/test/skia_common.cc |
| @@ -6,8 +6,8 @@ |
| #include <stddef.h> |
| +#include "cc/paint/paint_canvas.h" |
| #include "cc/playback/display_item_list.h" |
| -#include "third_party/skia/include/core/SkCanvas.h" |
| #include "third_party/skia/include/core/SkImageGenerator.h" |
| #include "third_party/skia/include/core/SkPixmap.h" |
| #include "ui/gfx/geometry/rect.h" |
| @@ -47,7 +47,7 @@ void DrawDisplayList(unsigned char* buffer, |
| SkImageInfo::MakeN32Premul(layer_rect.width(), layer_rect.height()); |
| SkBitmap bitmap; |
| bitmap.installPixels(info, buffer, info.minRowBytes()); |
| - SkCanvas canvas(bitmap); |
| + PaintCanvas canvas(bitmap); |
|
danakj
2017/01/20 23:34:14
this is raster, shouldn't this be SkCanvas?
enne (OOO)
2017/01/24 01:51:28
So, this depends on what you think the future shou
danakj
2017/01/24 15:32:07
OK ya I think you're right.
|
| canvas.clipRect(gfx::RectToSkRect(layer_rect)); |
| list->Raster(&canvas, NULL, layer_rect, 1.0f); |
| } |