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

Unified Diff: cc/test/skia_common.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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
« no previous file with comments | « cc/test/picture_cache_model.cc ('k') | cc/test/solid_color_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/skia_common.cc
diff --git a/cc/test/skia_common.cc b/cc/test/skia_common.cc
index ec399087f54e8ee19f2722150eec95d0a12bdc7d..04d1b8f7c1c801c75c3b89f82e1a98636a205277 100644
--- a/cc/test/skia_common.cc
+++ b/cc/test/skia_common.cc
@@ -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);
+ CdlCanvas canvas(bitmap);
canvas.clipRect(gfx::RectToSkRect(layer_rect));
list->Raster(&canvas, NULL, layer_rect, 1.0f);
}
« no previous file with comments | « cc/test/picture_cache_model.cc ('k') | cc/test/solid_color_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698