Index: ui/compositor/paint_context.h |
diff --git a/ui/compositor/paint_context.h b/ui/compositor/paint_context.h |
index ceb5d258e4f212e4a0169ab26348efbb39b59116..0960ab5478f6336e32925cf1659f396c9e007de9 100644 |
--- a/ui/compositor/paint_context.h |
+++ b/ui/compositor/paint_context.h |
@@ -13,6 +13,7 @@ class Canvas; |
} |
namespace ui { |
+class PaintRecorder; |
class PaintContext { |
public: |
@@ -67,6 +68,11 @@ class PaintContext { |
#endif |
private: |
+ // The PaintRecorder needs 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 |
+ // recorder to access them. |
+ friend class PaintRecorder; |
+ |
// Clone a PaintContext with an additional |offset|. |
PaintContext(const PaintContext& other, const gfx::Vector2d& offset) |
: canvas_(other.canvas_), |