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

Unified Diff: Source/platform/graphics/paint/DrawingRecorder.h

Issue 800553002: Disable drawing recorder cache for carets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleanup 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/platform/graphics/paint/DrawingRecorder.h
diff --git a/Source/platform/graphics/paint/DrawingRecorder.h b/Source/platform/graphics/paint/DrawingRecorder.h
index 06f349164e10c5f0efb3b69aa6f127fe8a0deeb5..ead9dba8f6263548b7ac081a8b752ce24726b644 100644
--- a/Source/platform/graphics/paint/DrawingRecorder.h
+++ b/Source/platform/graphics/paint/DrawingRecorder.h
@@ -21,7 +21,12 @@ class RenderObject;
class PLATFORM_EXPORT DrawingRecorder {
public:
- explicit DrawingRecorder(GraphicsContext*, const DisplayItemClient, DisplayItem::Type, const FloatRect& bounds);
+ enum CachePolicy {
+ UseCacheIfAvailable,
+ DisableCache,
+ };
+
+ explicit DrawingRecorder(GraphicsContext*, const DisplayItemClient, DisplayItem::Type, const FloatRect&, CachePolicy = UseCacheIfAvailable);
~DrawingRecorder();

Powered by Google App Engine
This is Rietveld 408576698