From d9689beb7fce225abbaa78063d46717ec92b19fd Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Tue, 1 May 2012 12:54:21 -0400 Subject: Fix SkNWayCanvas to prevent crashes by setting up a device This is a cherry-pick of two CL's from upstream Skia: https://codereview.appspot.com/6092056/ https://codereview.appspot.com/6131062/ bug: 6400332 Change-Id: Ia833e7c0d4fd6e21a06980653450095176f5bd42 --- include/utils/SkNWayCanvas.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/utils/SkNWayCanvas.h b/include/utils/SkNWayCanvas.h index 69c1fcf..dbf4a58 100644 --- a/include/utils/SkNWayCanvas.h +++ b/include/utils/SkNWayCanvas.h @@ -13,7 +13,7 @@ class SkNWayCanvas : public SkCanvas { public: - SkNWayCanvas(); + SkNWayCanvas(int width, int height); virtual ~SkNWayCanvas(); void addCanvas(SkCanvas*); -- cgit v1.1