Skip to content

Commit

Permalink
Phoney SkDraw needs more after skia rev 1141.
Browse files Browse the repository at this point in the history
BUG=NONE
TEST=NONE

Review URL: http://codereview.chromium.org/6878031

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82114 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
vandebo@chromium.org committed Apr 19, 2011
1 parent 4883796 commit acf25bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions skia/ext/vector_platform_device_skia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,13 @@ PlatformDevice::PlatformSurface VectorPlatformDeviceSkia::BeginPlatformPaint() {
void VectorPlatformDeviceSkia::EndPlatformPaint() {
DCHECK(raster_surface_ != NULL);
SkPaint paint;
pdf_device_->drawSprite(SkDraw(), raster_surface_->accessBitmap(false),
0, 0, paint);
// SkPDFDevice checks the passed SkDraw for an empty clip (only). Fake
// it out by setting a non-empty clip.
SkDraw draw;
SkRegion clip(SkIRect::MakeWH(pdf_device_->width(), pdf_device_->height()));
draw.fClip=&clip;
pdf_device_->drawSprite(draw, raster_surface_->accessBitmap(false), 0, 0,
paint);
raster_surface_ = NULL;
}

Expand Down

0 comments on commit acf25bc

Please sign in to comment.