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

Unified Diff: ui/compositor/canvas_painter.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: nits Created 3 years, 6 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/compositor/canvas_painter.cc
diff --git a/ui/compositor/canvas_painter.cc b/ui/compositor/canvas_painter.cc
index a12e85ab06efe118dfddcef8d0cac1ca04b90f4a..def2fc6d5ec7b520a39f4293a2c650818269cbbc 100644
--- a/ui/compositor/canvas_painter.cc
+++ b/ui/compositor/canvas_painter.cc
@@ -17,7 +17,8 @@ CanvasPainter::CanvasPainter(SkBitmap* output,
raster_scale_(raster_scale),
clear_color_(clear_color),
list_(new cc::DisplayItemList),
- context_(list_.get(), raster_scale, gfx::Rect(paint_size_)) {}
+ context_(list_.get(), raster_scale, gfx::Rect(paint_size_), paint_size_) {
+}
CanvasPainter::~CanvasPainter() {
gfx::Size pixel_size = gfx::ScaleToCeiledSize(paint_size_, raster_scale_);

Powered by Google App Engine
This is Rietveld 408576698