Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Unified Diff: cc/test/skia_common.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698