diff options
author | halcanary <halcanary@google.com> | 2016-04-01 11:51:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-01 11:51:00 -0700 |
commit | 895f3f0544ce38d35999771754cbb1d876c14b5a (patch) | |
tree | 8336645c502bfe4c4f7faee145d25a1e05d35047 /src/pdf/SkBitmapKey.h | |
parent | 389666bf1fed53a92b8c320157ee5fc0d5173552 (diff) |
SkPDF: properly dedup bitmaps in shaders
BUG=skia:5161
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1848383002
Review URL: https://codereview.chromium.org/1848383002
Diffstat (limited to 'src/pdf/SkBitmapKey.h')
-rw-r--r-- | src/pdf/SkBitmapKey.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pdf/SkBitmapKey.h b/src/pdf/SkBitmapKey.h index 4723debac2..53d4d64f32 100644 --- a/src/pdf/SkBitmapKey.h +++ b/src/pdf/SkBitmapKey.h @@ -25,6 +25,7 @@ public: return fID == rhs.fID && fSubset == rhs.fSubset; } bool operator!=(const SkBitmapKey& rhs) const { return !(*this == rhs); } + uint32_t id() const { return fID; } private: SkIRect fSubset; |