From 190e57296c68e980d50057f6a9666d2a3f92fa3d Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Thu, 27 Sep 2018 15:40:18 -0400 Subject: [PATCH] Add two cache warning Change-Id: Ib1b3e8598b5e61a866446ec7c007672d089f634b Reviewed-on: https://skia-review.googlesource.com/157525 Commit-Queue: Herb Derby Reviewed-by: Ben Wagner --- src/core/SkGlyphRunPainter.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/SkGlyphRunPainter.h b/src/core/SkGlyphRunPainter.h index 2fd312643f..8ee3a9da67 100644 --- a/src/core/SkGlyphRunPainter.h +++ b/src/core/SkGlyphRunPainter.h @@ -161,6 +161,8 @@ void SkGlyphRunListPainter::forEachMappedDrawableGlyph( } } +// Beware! The following code will end up holding two glyph caches at the same time, but they +// will not be the same cache (which would cause two separate caches to be created). template void SkGlyphRunListPainter::drawGlyphRunAsPathWithARGBFallback( SkGlyphCacheInterface* pathCache, const SkGlyphRun& glyphRun,