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

Unified Diff: sky/engine/platform/text/TextRun.h

Issue 859203002: Merge Blink code to cache SkTextBlob (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: hashmap Created 5 years, 11 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 | « sky/engine/platform/graphics/GraphicsContext.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/text/TextRun.h
diff --git a/sky/engine/platform/text/TextRun.h b/sky/engine/platform/text/TextRun.h
index f6329ad4ac0504fb1219c89c3327b7526ec57a35..285ba5b33e07c4fd4af0a124f21d67f368998d92 100644
--- a/sky/engine/platform/text/TextRun.h
+++ b/sky/engine/platform/text/TextRun.h
@@ -32,6 +32,8 @@
#include "sky/engine/wtf/RefCounted.h"
#include "sky/engine/wtf/text/WTFString.h"
+class SkTextBlob;
+
namespace blink {
class FloatPoint;
@@ -245,6 +247,7 @@ struct TextRunPaintInfo {
: run(r)
, from(0)
, to(r.length())
+ , cachedTextBlob(nullptr)
{
}
@@ -252,6 +255,7 @@ struct TextRunPaintInfo {
int from;
int to;
FloatRect bounds;
+ RefPtr<const SkTextBlob>* cachedTextBlob;
};
}
« no previous file with comments | « sky/engine/platform/graphics/GraphicsContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698