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

Unified Diff: cc/test/skia_common.cc

Issue 1982893002: [blimp] Add SkPicture caching support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge origin/master Created 4 years, 6 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 13fdd6f0c69c4fccbfc64fe644904c6aa16f8690..64495e57bfeef6754aca770de6d29bb76cbd05eb 100644
--- a/cc/test/skia_common.cc
+++ b/cc/test/skia_common.cc
@@ -26,7 +26,7 @@ class TestImageGenerator : public SkImageGenerator {
void DrawDisplayList(unsigned char* buffer,
const gfx::Rect& layer_rect,
- scoped_refptr<DisplayItemList> list) {
+ scoped_refptr<const DisplayItemList> list) {
SkImageInfo info =
SkImageInfo::MakeN32Premul(layer_rect.width(), layer_rect.height());
SkBitmap bitmap;
@@ -36,9 +36,10 @@ void DrawDisplayList(unsigned char* buffer,
list->Raster(&canvas, NULL, gfx::Rect(), 1.0f);
}
-bool AreDisplayListDrawingResultsSame(const gfx::Rect& layer_rect,
- scoped_refptr<DisplayItemList> list_a,
- scoped_refptr<DisplayItemList> list_b) {
+bool AreDisplayListDrawingResultsSame(
+ const gfx::Rect& layer_rect,
+ scoped_refptr<const DisplayItemList> list_a,
+ scoped_refptr<const DisplayItemList> list_b) {
const size_t pixel_size = 4 * layer_rect.size().GetArea();
std::unique_ptr<unsigned char[]> pixels_a(new unsigned char[pixel_size]);

Powered by Google App Engine
This is Rietveld 408576698