Index: src/core/SkTextBlob.cpp |
diff --git a/src/core/SkTextBlob.cpp b/src/core/SkTextBlob.cpp |
index 3d396deba5cb4ce8fe84daeff52b64e369ddb0f4..1857da7b857385be6914b8e91be1b660631c72e6 100644 |
--- a/src/core/SkTextBlob.cpp |
+++ b/src/core/SkTextBlob.cpp |
@@ -47,6 +47,9 @@ public: |
bool operator!=(const RunFont& other) const { |
return !(*this == other); |
} |
+ |
+ uint32_t flags() const { return fFlags; } |
+ |
private: |
const static uint32_t kFlagsMask = |
SkPaint::kAntiAlias_Flag | |
@@ -343,6 +346,10 @@ void SkTextBlob::RunIterator::applyFontToPaint(SkPaint* paint) const { |
fCurrentRun->font().applyToPaint(paint); |
} |
+uint32_t SkTextBlob::RunIterator::flags() const { |
+ return fCurrentRun->font().flags(); |
+} |
+ |
SkTextBlobBuilder::SkTextBlobBuilder() |
: fStorageSize(0) |
, fStorageUsed(0) |