Index: src/core/SkRemote_protocol.h |
diff --git a/src/core/SkRemote_protocol.h b/src/core/SkRemote_protocol.h |
index 997521356e2563875d46c7f74e13ab88127b9f90..23fa60cfc9868e805eba7cb5de5b5022cd092d8f 100644 |
--- a/src/core/SkRemote_protocol.h |
+++ b/src/core/SkRemote_protocol.h |
@@ -21,6 +21,7 @@ namespace SkRemote { |
kMisc, |
kPath, |
kStroke, |
+ kXfermode, |
}; |
class ID { |
@@ -35,11 +36,10 @@ namespace SkRemote { |
uint64_t val() const { return fVal & ~((uint64_t)0xFF << 56); } |
bool operator==(ID o) const { return fVal == o.fVal; } |
- ID operator++(int) { |
- ID prev = *this; |
- fVal++; |
+ ID operator++() { |
+ ++fVal; |
SkASSERT(this->val() != 0); // Overflow is particularly bad as it'd change our Type. |
- return prev; |
+ return *this; |
} |
private: |