diff options
author | Chet Haase <chet@google.com> | 2010-12-15 13:03:56 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-12-15 13:03:56 -0800 |
commit | 6f6457a7e6b357390a540a8ee78178e3f54addad (patch) | |
tree | 3ff11d559890dda48a961a61e1c0cb9cb3a1ffc8 /include | |
parent | bdc1207aa05f2f1b013e937f9cbe4795768eaa74 (diff) | |
parent | 9f523ea27ec892a176817dc3a46179c0a910beb4 (diff) | |
download | external_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')
-rw-r--r-- | include/core/SkPaint.h | 5 |
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. |