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

Unified Diff: gm/fontscaler.cpp

Issue 23454017: Reduce number of glyphs drawn by fontscaler GM to avoid N4 MSAA4 crash (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add comment Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/fontscaler.cpp
diff --git a/gm/fontscaler.cpp b/gm/fontscaler.cpp
index 59b1a4322bce5f6498222aa1a5d713d023eafe7d..33f6779d2c295577432e78e988385e5b94ff170a 100644
--- a/gm/fontscaler.cpp
+++ b/gm/fontscaler.cpp
@@ -49,7 +49,8 @@ protected:
const size_t textLen = strlen(text);
for (int j = 0; j < 2; ++j) {
- for (int i = 0; i < 6; ++i) {
+ // This used to do 6 iterations but it causes the N4 to crash in the MSAA4 config.
+ for (int i = 0; i < 5; ++i) {
SkScalar x = SkIntToScalar(10);
SkScalar y = SkIntToScalar(20);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698