Compiler warning fixes for r7235
git-svn-id: http://skia.googlecode.com/svn/trunk@7237 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
1c711cabae
commit
914a2f2823
@ -26,7 +26,8 @@ static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip,
|
|||||||
SkAutoCanvasRestore acr(canvas, true);
|
SkAutoCanvasRestore acr(canvas, true);
|
||||||
SkPaint paint;
|
SkPaint paint;
|
||||||
|
|
||||||
SkRect clipR = SkRect::MakeXYWH(dx, dy,
|
SkRect clipR = SkRect::MakeXYWH(SkIntToScalar(dx),
|
||||||
|
SkIntToScalar(dy),
|
||||||
SkIntToScalar(bm.width()),
|
SkIntToScalar(bm.width()),
|
||||||
SkIntToScalar(bm.height()));
|
SkIntToScalar(bm.height()));
|
||||||
|
|
||||||
|
@ -190,9 +190,9 @@ void PictureRenderer::resetState() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32_t PictureRenderer::recordFlags() {
|
uint32_t PictureRenderer::recordFlags() {
|
||||||
return kNone_BBoxHierarchyType == (fBBoxHierarchyType ? 0 :
|
return (kNone_BBoxHierarchyType == fBBoxHierarchyType) ? 0 :
|
||||||
SkPicture::kOptimizeForClippedPlayback_RecordingFlag) |
|
(SkPicture::kOptimizeForClippedPlayback_RecordingFlag |
|
||||||
SkPicture::kUsePathBoundsForClip_RecordingFlag;
|
SkPicture::kUsePathBoundsForClip_RecordingFlag);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user