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

Unified Diff: Source/core/rendering/TextPainter.h

Issue 554613004: TextBlob: Start caching a text blob per InlineTextBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: turn off runtime-enabled feature for landing Created 6 years, 3 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
« no previous file with comments | « Source/core/rendering/InlineTextBox.cpp ('k') | Source/core/rendering/TextPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/TextPainter.h
diff --git a/Source/core/rendering/TextPainter.h b/Source/core/rendering/TextPainter.h
index 95bfd70513977651b31f7eabc17289cd15157ed8..bef9eb208dfe04420025c43f276f423320524462 100644
--- a/Source/core/rendering/TextPainter.h
+++ b/Source/core/rendering/TextPainter.h
@@ -6,6 +6,7 @@
#define TextPainter_h
#include "core/rendering/style/RenderStyleConstants.h"
+#include "platform/fonts/TextBlob.h"
#include "platform/geometry/FloatPoint.h"
#include "platform/geometry/FloatRect.h"
#include "platform/graphics/Color.h"
@@ -33,7 +34,7 @@ public:
static void updateGraphicsContext(GraphicsContext*, const Style&, bool horizontal, GraphicsContextStateSaver&);
- void paint(int startOffset, int endOffset, int length, const Style&);
+ void paint(int startOffset, int endOffset, int length, const Style&, TextBlobPtr* cachedTextBlob = 0);
struct Style {
Color fillColor;
@@ -62,10 +63,10 @@ private:
enum PaintInternalStep { PaintText, PaintEmphasisMark };
template <PaintInternalStep step>
- void paintInternalRun(TextRunPaintInfo&, int from, int to);
+ void paintInternalRun(TextRunPaintInfo&, int from, int to, TextBlobPtr* cachedTextBlob = 0);
template <PaintInternalStep step>
- void paintInternal(int startOffset, int endOffset, int truncationPoint);
+ void paintInternal(int startOffset, int endOffset, int truncationPoint, TextBlobPtr* cachedTextBlob = 0);
void paintEmphasisMarkForCombinedText();
« no previous file with comments | « Source/core/rendering/InlineTextBox.cpp ('k') | Source/core/rendering/TextPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698