Index: ui/gfx/canvas_skia.cc |
diff --git a/ui/gfx/canvas_skia.cc b/ui/gfx/canvas_skia.cc |
index 6e44931f5b92953d388b135cd13c38b259c77702..5ae821c1c9b9dd662fa71be2a86f232f141cc89a 100644 |
--- a/ui/gfx/canvas_skia.cc |
+++ b/ui/gfx/canvas_skia.cc |
@@ -114,11 +114,7 @@ void CanvasSkia::SaveLayerAlpha(uint8 alpha) { |
void CanvasSkia::SaveLayerAlpha(uint8 alpha, const gfx::Rect& layer_bounds) { |
- SkRect bounds; |
- bounds.set(SkIntToScalar(layer_bounds.x()), |
- SkIntToScalar(layer_bounds.y()), |
- SkIntToScalar(layer_bounds.right()), |
- SkIntToScalar(layer_bounds.bottom())); |
+ SkRect bounds(gfx::RectToSkRect(layer_bounds)); |
canvas_->saveLayerAlpha(&bounds, alpha); |
} |