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

Unified Diff: Source/core/paint/RenderDrawingRecorder.h

Issue 799563002: Use DrawingRecorder::canUseCachedDrawing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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: Source/core/paint/RenderDrawingRecorder.h
diff --git a/Source/core/paint/RenderDrawingRecorder.h b/Source/core/paint/RenderDrawingRecorder.h
index 5acd0fd08bfaa61c9846311ea8fe08e4c25a186d..6254106b5d6a3ab756791218068c069d4ddbf6b6 100644
--- a/Source/core/paint/RenderDrawingRecorder.h
+++ b/Source/core/paint/RenderDrawingRecorder.h
@@ -15,16 +15,15 @@ namespace blink {
class GraphicsContext;
class RenderObject;
-class RenderDrawingRecorder {
+class RenderDrawingRecorder : public DrawingRecorder {
Xianzhu 2014/12/11 19:50:59 This is to inherit the canUseCachedDrawing method.
chrishtr 2014/12/12 00:18:08 Let's delegate instead. That pattern is already in
Xianzhu 2014/12/12 00:56:49 Done.
public:
- explicit RenderDrawingRecorder(GraphicsContext*, const RenderObject*, PaintPhase, const FloatRect&);
+ explicit RenderDrawingRecorder(GraphicsContext*, const RenderObject&, PaintPhase, const FloatRect&);
~RenderDrawingRecorder();
private:
- DrawingRecorder drawingRecorder;
#ifndef NDEBUG
- const RenderObject* m_renderer;
+ const RenderObject& m_renderer;
#endif
};

Powered by Google App Engine
This is Rietveld 408576698