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

Unified Diff: ui/compositor/canvas_painter.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 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
« no previous file with comments | « ui/compositor/canvas_painter.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/canvas_painter.cc
diff --git a/ui/compositor/canvas_painter.cc b/ui/compositor/canvas_painter.cc
index a12e85ab06efe118dfddcef8d0cac1ca04b90f4a..864d8b03e84c1b9b980486687d0138a5baf344bb 100644
--- a/ui/compositor/canvas_painter.cc
+++ b/ui/compositor/canvas_painter.cc
@@ -11,13 +11,17 @@ namespace ui {
CanvasPainter::CanvasPainter(SkBitmap* output,
const gfx::Size& paint_size,
float raster_scale,
- SkColor clear_color)
+ SkColor clear_color,
+ bool is_pixel_canvas)
: output_(output),
paint_size_(paint_size),
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_),
+ is_pixel_canvas) {}
CanvasPainter::~CanvasPainter() {
gfx::Size pixel_size = gfx::ScaleToCeiledSize(paint_size_, raster_scale_);
« no previous file with comments | « ui/compositor/canvas_painter.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698