Index: src/core/SkBigPicture.cpp |
diff --git a/src/core/SkBigPicture.cpp b/src/core/SkBigPicture.cpp |
index da3d3a841808da5339ff82a64d04d08b705d984d..cd9c5f70b57508bda5e03c258041b17d918635a1 100644 |
--- a/src/core/SkBigPicture.cpp |
+++ b/src/core/SkBigPicture.cpp |
@@ -63,7 +63,6 @@ const SkBigPicture::Analysis& SkBigPicture::analysis() const { |
} |
SkRect SkBigPicture::cullRect() const { return fCullRect; } |
-bool SkBigPicture::hasText() const { return this->analysis().fHasText; } |
bool SkBigPicture::willPlayBackBitmaps() const { return this->analysis().fWillPlaybackBitmaps; } |
int SkBigPicture::numSlowPaths() const { return this->analysis().fNumSlowPathsAndDashEffects; } |
int SkBigPicture::approximateOpCount() const { return fRecord->count(); } |
@@ -83,18 +82,15 @@ SkPicture const* const* SkBigPicture::drawablePicts() const { |
void SkBigPicture::Analysis::init(const SkRecord& record) { |
TRACE_EVENT0("disabled-by-default-skia", "SkBigPicture::Analysis::init()"); |
- SkTextHunter text; |
SkBitmapHunter bitmap; |
SkPathCounter path; |
- bool hasText = false, hasBitmap = false; |
+ bool hasBitmap = false; |
for (int i = 0; i < record.count(); i++) { |
- hasText = hasText || record.visit(i, text); |
hasBitmap = hasBitmap || record.visit(i, bitmap); |
record.visit(i, path); |
} |
- fHasText = hasText; |
fWillPlaybackBitmaps = hasBitmap; |
fNumSlowPathsAndDashEffects = SkTMin<int>(path.fNumSlowPathsAndDashEffects, 255); |
} |