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

Unified Diff: ui/compositor/paint_context.h

Issue 2694023003: Make CanvasPainter raster directly to an SkBitmap (Closed)
Patch Set: Replace CanvasPainter rect with size Created 3 years, 10 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/paint_context.h
diff --git a/ui/compositor/paint_context.h b/ui/compositor/paint_context.h
index b9c51dd386a3dca5caf7daa4d15ea1a541f18511..5ca65e755570f89c0029aa87817c6232b63bf4f5 100644
--- a/ui/compositor/paint_context.h
+++ b/ui/compositor/paint_context.h
@@ -65,6 +65,8 @@ class COMPOSITOR_EXPORT PaintContext {
const gfx::Rect& InvalidationForTesting() const { return invalidation_; }
+ float device_scale_factor() const { return device_scale_factor_; }
danakj 2017/02/14 21:37:26 It doesn't look like you need to add this if u sto
+
private:
// The Recorder classes need access to the internal canvas and friends, but we
// don't want to expose them on this class so that people must go through the

Powered by Google App Engine
This is Rietveld 408576698