| Index: skia/ext/vector_platform_device_skia.cc
|
| ===================================================================
|
| --- skia/ext/vector_platform_device_skia.cc (revision 127021)
|
| +++ skia/ext/vector_platform_device_skia.cc (working copy)
|
| @@ -41,19 +41,9 @@
|
| // and return the context from it, then layer on the raster data as an
|
| // image in EndPlatformPaint.
|
| DCHECK(raster_surface_ == NULL);
|
| -#if defined(OS_WIN)
|
| - raster_surface_ = BitmapPlatformDevice::create(width(),
|
| - height(),
|
| - false, /* not opaque */
|
| - NULL);
|
| -#elif defined(OS_POSIX) && !defined(OS_MACOSX)
|
| - raster_surface_ = BitmapPlatformDevice::Create(width(),
|
| - height(),
|
| - false /* not opaque */);
|
| -#endif
|
| + raster_surface_ = BitmapPlatformDevice::CreateAndClear(width(), height(),
|
| + false);
|
| raster_surface_->unref(); // SkRefPtr and create both took a reference.
|
| -
|
| - SkCanvas canvas(raster_surface_.get());
|
| return raster_surface_->BeginPlatformPaint();
|
| }
|
|
|
|
|