summaryrefslogtreecommitdiffstats
path: root/skia/ext/benchmarking_canvas.cc
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/benchmarking_canvas.cc')
-rw-r--r--skia/ext/benchmarking_canvas.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/skia/ext/benchmarking_canvas.cc b/skia/ext/benchmarking_canvas.cc
index d2a2b3a..a0bb8a0 100644
--- a/skia/ext/benchmarking_canvas.cc
+++ b/skia/ext/benchmarking_canvas.cc
@@ -6,7 +6,6 @@
#include "base/logging.h"
#include "base/time/time.h"
#include "skia/ext/benchmarking_canvas.h"
-#include "third_party/skia/include/core/SkBitmapDevice.h"
#include "third_party/skia/include/utils/SkProxyCanvas.h"
namespace skia {
@@ -25,9 +24,7 @@ class TimingCanvas : public SkProxyCanvas {
public:
TimingCanvas(int width, int height, const BenchmarkingCanvas* track_canvas)
: tracking_canvas_(track_canvas) {
- skia::RefPtr<SkBaseDevice> device = skia::AdoptRef(
- SkNEW_ARGS(SkBitmapDevice, (SkBitmap::kARGB_8888_Config, width, height)));
- canvas_ = skia::AdoptRef(SkNEW_ARGS(SkCanvas, (device.get())));
+ canvas_ = skia::AdoptRef(SkCanvas::NewRasterN32(width, height));
setProxy(canvas_.get());
}