summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-12 23:33:05 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-12 23:33:05 +0000
commitb0b0d2c474c9a9b8743a4eb5bb46ac34f8b1086d (patch)
tree1c8b634cd3449ae2c01131ae5aa9f699d7a6c79e /skia
parentbf381d8a02c3d272d4dd879ac719d8993dfb5ad6 (diff)
downloadchromium_src-b0b0d2c474c9a9b8743a4eb5bb46ac34f8b1086d.zip
chromium_src-b0b0d2c474c9a9b8743a4eb5bb46ac34f8b1086d.tar.gz
chromium_src-b0b0d2c474c9a9b8743a4eb5bb46ac34f8b1086d.tar.bz2
Fix DCHECK - BitmapPlatformDevice requires begin and end platform paint calls to match.
BUG=NONE TEST=Use print preview from history page. Review URL: http://codereview.chromium.org/7016027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85212 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/vector_platform_device_skia.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/skia/ext/vector_platform_device_skia.cc b/skia/ext/vector_platform_device_skia.cc
index 9d2415e..9421b0b 100644
--- a/skia/ext/vector_platform_device_skia.cc
+++ b/skia/ext/vector_platform_device_skia.cc
@@ -81,6 +81,8 @@ void VectorPlatformDeviceSkia::EndPlatformPaint() {
draw.fClip=&clip;
pdf_device_->drawSprite(draw, raster_surface_->accessBitmap(false), 0, 0,
paint);
+ // BitmapPlatformDevice matches begin and end calls.
+ raster_surface_->EndPlatformPaint();
raster_surface_ = NULL;
}