aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRemote_protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkRemote_protocol.h')
-rw-r--r--src/core/SkRemote_protocol.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkRemote_protocol.h b/src/core/SkRemote_protocol.h
index 997521356e..23fa60cfc9 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: