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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.h

Issue 2107103002: Find cached display items directly during painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 5 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: 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();

Powered by Google App Engine
This is Rietveld 408576698