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

Unified Diff: ui/compositor/paint_recorder.h

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/paint_recorder.h
diff --git a/ui/compositor/paint_recorder.h b/ui/compositor/paint_recorder.h
index 3785c1bbc2359c5bd590609db370a7a426baacfe..5104612dea1b4f279b25c6713662f460c8dd3def 100644
--- a/ui/compositor/paint_recorder.h
+++ b/ui/compositor/paint_recorder.h
@@ -29,9 +29,11 @@ class COMPOSITOR_EXPORT PaintRecorder {
public:
// The |cache| is owned by the caller and must be kept alive while
// PaintRecorder is in use. Canvas is bounded by |recording_size|.
+ // |recording_size| should be in pixels if pixel canvas is enabled.
PaintRecorder(const PaintContext& context,
const gfx::Size& recording_size,
PaintCache* cache);
+ // |recording_size| should always be in DIPs.
PaintRecorder(const PaintContext& context, const gfx::Size& recording_size);
~PaintRecorder();

Powered by Google App Engine
This is Rietveld 408576698