diff options
author | Robert Phillips <robertphillips@google.com> | 2017-11-30 11:22:14 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-30 17:10:38 +0000 |
commit | 61e51012ee150e12f953bc4225fbdbdc1564007d (patch) | |
tree | b5ba2b7055c5f649df7774527f3cae5704fcadea /include/core/SkSurfaceProps.h | |
parent | f3c1f099de2d0baa174874e3fa51739a160e835c (diff) |
Flesh out SkSurfaceCharacterization
This should be it for now except for maybe a GrMipMapped field.
Change-Id: I8f20a1048eaa8cd2b5eab5f42ca58c61649f72e7
Reviewed-on: https://skia-review.googlesource.com/78440
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/core/SkSurfaceProps.h')
-rw-r--r-- | include/core/SkSurfaceProps.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkSurfaceProps.h b/include/core/SkSurfaceProps.h index da04d1fe92..66617995e4 100644 --- a/include/core/SkSurfaceProps.h +++ b/include/core/SkSurfaceProps.h @@ -72,6 +72,10 @@ public: return SkToBool(fFlags & kUseDeviceIndependentFonts_Flag); } + bool operator==(const SkSurfaceProps& that) const { + return fFlags == that.fFlags && fPixelGeometry == that.fPixelGeometry; + } + private: SkSurfaceProps(); |