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

Unified Diff: ui/compositor/layer_delegate.h

Issue 1053143002: Make View::Paint use ui::PaintRecorder to access PaintContext's canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: paintrecorder: . Created 5 years, 9 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/layer_delegate.h
diff --git a/ui/compositor/layer_delegate.h b/ui/compositor/layer_delegate.h
index 9312e02af91308e02768b028c61ab2811592b1d0..c3c4e39aed6ede950c787357720ea90b85bc5e9c 100644
--- a/ui/compositor/layer_delegate.h
+++ b/ui/compositor/layer_delegate.h
@@ -14,13 +14,13 @@ class Rect;
}
namespace ui {
+class PaintContext;
// A delegate interface implemented by an object that renders to a Layer.
class COMPOSITOR_EXPORT LayerDelegate {
public:
- // Paint content for the layer to the specified canvas. It has already been
- // clipped to the Layer's invalid rect.
- virtual void OnPaintLayer(gfx::Canvas* canvas) = 0;
+ // Paint content for the layer to the specified context.
+ virtual void OnPaintLayer(const PaintContext& context) = 0;
// A notification that this layer has had a delegated frame swap and
// will be repainted.

Powered by Google App Engine
This is Rietveld 408576698