| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "SkPixelXorXfermode.h" | 10 #include "SkPixelXorXfermode.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 void SkPixelXorXfermode::flatten(SkWriteBuffer& wb) const { | 24 void SkPixelXorXfermode::flatten(SkWriteBuffer& wb) const { |
| 25 this->INHERITED::flatten(wb); | 25 this->INHERITED::flatten(wb); |
| 26 wb.writeColor(fOpColor); | 26 wb.writeColor(fOpColor); |
| 27 } | 27 } |
| 28 | 28 |
| 29 SkPixelXorXfermode::SkPixelXorXfermode(SkReadBuffer& rb) | 29 SkPixelXorXfermode::SkPixelXorXfermode(SkReadBuffer& rb) |
| 30 : INHERITED(rb) { | 30 : INHERITED(rb) { |
| 31 fOpColor = rb.readColor(); | 31 fOpColor = rb.readColor(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 #ifdef SK_DEVELOPER | 34 #ifndef SK_IGNORE_TO_STRING |
| 35 void SkPixelXorXfermode::toString(SkString* str) const { | 35 void SkPixelXorXfermode::toString(SkString* str) const { |
| 36 str->append("SkPixelXorXfermode: "); | 36 str->append("SkPixelXorXfermode: "); |
| 37 str->appendHex(fOpColor); | 37 str->appendHex(fOpColor); |
| 38 } | 38 } |
| 39 #endif | 39 #endif |
| OLD | NEW |