Chromium Code Reviews

Unified Diff: ui/gfx/canvas_paint_mac.mm

Issue 1462163002: Move uncoupled code out of skia/ext/platform_device.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-draft-metadata
Patch Set: Mac compile fixes Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: ui/gfx/canvas_paint_mac.mm
diff --git a/ui/gfx/canvas_paint_mac.mm b/ui/gfx/canvas_paint_mac.mm
index 4cb2da0f8f6667f0193fa5fac5438084bb83f91a..cc1c6a4f7441dee63ba169f98f441b83b186c484 100644
--- a/ui/gfx/canvas_paint_mac.mm
+++ b/ui/gfx/canvas_paint_mac.mm
@@ -68,7 +68,7 @@ void CanvasSkiaPaint::Init(bool opaque) {
canvas->translate(-SkDoubleToScalar(NSMinX(rectangle_)),
-SkDoubleToScalar(NSMinY(rectangle_)));
- context_ = skia::GetBitmapContext(skia::GetTopDevice(*canvas));
+ context_ = skia::GetBitmapContext(*canvas);
}
} // namespace skia

Powered by Google App Engine