diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-12 23:33:05 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-12 23:33:05 +0000 |
commit | b0b0d2c474c9a9b8743a4eb5bb46ac34f8b1086d (patch) | |
tree | 1c8b634cd3449ae2c01131ae5aa9f699d7a6c79e /skia | |
parent | bf381d8a02c3d272d4dd879ac719d8993dfb5ad6 (diff) | |
download | chromium_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.cc | 2 |
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; } |