Index: ui/gfx/canvas.cc |
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc |
index 31ef57fbd294b02568e9fa28a36075637447d3ca..80eeda5a61c5f5a2cde2d2b154fdbb78e020b285 100644 |
--- a/ui/gfx/canvas.cc |
+++ b/ui/gfx/canvas.cc |
@@ -584,7 +584,7 @@ cc::PaintCanvas* Canvas::CreateOwnedCanvas(const Size& size, bool is_opaque) { |
// Ensure that the bitmap is zeroed, since the code expects that. |
memset(bitmap_->getPixels(), 0, bitmap_->getSafeSize()); |
- owned_canvas_ = cc::SkiaPaintCanvas(bitmap_.value()); |
+ owned_canvas_.emplace(bitmap_.value()); |
return &owned_canvas_.value(); |
} |