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

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

Issue 799563002: Use DrawingRecorder::canUseCachedDrawing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
« no previous file with comments | « Source/core/paint/ObjectPainter.cpp ('k') | Source/core/paint/RenderDrawingRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/RenderDrawingRecorder.h
diff --git a/Source/core/paint/RenderDrawingRecorder.h b/Source/core/paint/RenderDrawingRecorder.h
index 5acd0fd08bfaa61c9846311ea8fe08e4c25a186d..9bbd559140ff4a5fc39b5af6b98356eee2b2a9d2 100644
--- a/Source/core/paint/RenderDrawingRecorder.h
+++ b/Source/core/paint/RenderDrawingRecorder.h
@@ -17,14 +17,16 @@ class RenderObject;
class RenderDrawingRecorder {
public:
- explicit RenderDrawingRecorder(GraphicsContext*, const RenderObject*, PaintPhase, const FloatRect&);
+ explicit RenderDrawingRecorder(GraphicsContext*, const RenderObject&, PaintPhase, const FloatRect&);
~RenderDrawingRecorder();
+ bool canUseCachedDrawing() const { return m_drawingRecorder.canUseCachedDrawing(); }
+
private:
- DrawingRecorder drawingRecorder;
+ DrawingRecorder m_drawingRecorder;
#ifndef NDEBUG
- const RenderObject* m_renderer;
+ const RenderObject& m_renderer;
#endif
};
« no previous file with comments | « Source/core/paint/ObjectPainter.cpp ('k') | Source/core/paint/RenderDrawingRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698