Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1625)

Unified Diff: ui/gfx/canvas.cc

Issue 2768143002: Back PaintRecord with PaintOpBuffer instead of SkPicture (Closed)
Patch Set: more const casting Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}
« no previous file with comments | « third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.mm ('k') | ui/views/controls/scrollbar/cocoa_scroll_bar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698