diff options
author | Romain Guy <romainguy@google.com> | 2010-09-29 10:38:04 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-09-29 10:38:04 -0700 |
commit | 2807697c343af27a38007d5f6189effad72b2baf (patch) | |
tree | 936d388136ae0cf9b52b42291735951faf0c671a | |
parent | 4a2d03230b226721bd250ab722f0bec5fdb26021 (diff) | |
download | external_skia-2807697c343af27a38007d5f6189effad72b2baf.zip external_skia-2807697c343af27a38007d5f6189effad72b2baf.tar.gz external_skia-2807697c343af27a38007d5f6189effad72b2baf.tar.bz2 |
Correctly flatten/unflatten the fMode field.
Change-Id: Ifca20f519c371bfc2cb693f07348320ee4e44ab4
-rw-r--r-- | src/core/SkXfermode.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp index dece914..7ed77b2 100644 --- a/src/core/SkXfermode.cpp +++ b/src/core/SkXfermode.cpp @@ -315,10 +315,12 @@ void SkProcXfermode::xferA8(SK_RESTRICT SkAlpha dst[], SkProcXfermode::SkProcXfermode(SkFlattenableReadBuffer& buffer) : SkXfermode(buffer) { fProc = (SkXfermodeProc)buffer.readFunctionPtr(); + fMode = (Mode) buffer.readInt(); } void SkProcXfermode::flatten(SkFlattenableWriteBuffer& buffer) { buffer.writeFunctionPtr((void*)fProc); + buffer.writeInt(fMode); } /////////////////////////////////////////////////////////////////////////////// |