aboutsummaryrefslogtreecommitdiffstats
path: root/include/core
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2010-12-15 13:03:56 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-12-15 13:03:56 -0800
commit6f6457a7e6b357390a540a8ee78178e3f54addad (patch)
tree3ff11d559890dda48a961a61e1c0cb9cb3a1ffc8 /include/core
parentbdc1207aa05f2f1b013e937f9cbe4795768eaa74 (diff)
parent9f523ea27ec892a176817dc3a46179c0a910beb4 (diff)
downloadexternal_skia-6f6457a7e6b357390a540a8ee78178e3f54addad.zip
external_skia-6f6457a7e6b357390a540a8ee78178e3f54addad.tar.gz
external_skia-6f6457a7e6b357390a540a8ee78178e3f54addad.tar.bz2
Merge "Fix issue with SkPaint references being out of date."
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkPaint.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index ea21ceb..f2df226 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -93,7 +93,10 @@ public:
void setHinting(Hinting hintingLevel)
{
- fHinting = hintingLevel;
+ if ((unsigned) hintingLevel != fHinting) {
+ fGenerationID++;
+ fHinting = hintingLevel;
+ }
}
/** Specifies the bit values that are stored in the paint's flags.