Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: src/core/SkRemote_protocol.h

Issue 1412223002: SkRemote: add xfermodes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkRemote.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « src/core/SkRemote.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698