Index: third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.h |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.h b/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.h |
index 8840ce45ad2001e1f3904a022047e8c9eb8b5df8..3d2bbbea94f7dd7dadb5cc3782e3ddd90dfb0d67 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.h |
+++ b/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.h |
@@ -5,7 +5,9 @@ |
#ifndef SubsequenceRecorder_h |
#define SubsequenceRecorder_h |
+#include "platform/graphics/GraphicsContext.h" |
#include "platform/graphics/paint/DisplayItem.h" |
+#include "platform/graphics/paint/PaintController.h" |
#include "wtf/Allocator.h" |
#include "wtf/Noncopyable.h" |
@@ -26,7 +28,10 @@ class PLATFORM_EXPORT SubsequenceRecorder final { |
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
WTF_MAKE_NONCOPYABLE(SubsequenceRecorder); |
public: |
- static bool useCachedSubsequenceIfPossible(GraphicsContext&, const DisplayItemClient&); |
+ static bool useCachedSubsequenceIfPossible(GraphicsContext& context, const DisplayItemClient& client) |
+ { |
+ return context.getPaintController().useCachedSubsequenceIfPossible(client); |
+ } |
SubsequenceRecorder(GraphicsContext&, const DisplayItemClient&); |
~SubsequenceRecorder(); |