summaryrefslogtreecommitdiffstats
path: root/cc/test/skia_common.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/test/skia_common.cc')
-rw-r--r--cc/test/skia_common.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/cc/test/skia_common.cc b/cc/test/skia_common.cc
index bcb5f1a..22d546c 100644
--- a/cc/test/skia_common.cc
+++ b/cc/test/skia_common.cc
@@ -5,7 +5,6 @@
#include "cc/test/skia_common.h"
#include "cc/playback/display_item_list.h"
-#include "cc/playback/picture.h"
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkImageGenerator.h"
@@ -24,20 +23,6 @@ class TestImageGenerator : public SkImageGenerator {
} // anonymous namespace
-void DrawPicture(unsigned char* buffer,
- const gfx::Rect& layer_rect,
- scoped_refptr<Picture> picture) {
- SkImageInfo info =
- SkImageInfo::MakeN32Premul(layer_rect.width(), layer_rect.height());
- SkBitmap bitmap;
- bitmap.installPixels(info, buffer, info.minRowBytes());
- SkCanvas canvas(bitmap);
- canvas.clipRect(gfx::RectToSkRect(layer_rect));
- // We're drawing the entire canvas, so the negated content region is empty.
- gfx::Rect negated_content_region;
- picture->Raster(&canvas, NULL, negated_content_region, 1.0f);
-}
-
void DrawDisplayList(unsigned char* buffer,
const gfx::Rect& layer_rect,
scoped_refptr<DisplayItemList> list) {