aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkBitmapKey.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-04-01 11:51:00 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-01 11:51:00 -0700
commit895f3f0544ce38d35999771754cbb1d876c14b5a (patch)
tree8336645c502bfe4c4f7faee145d25a1e05d35047 /src/pdf/SkBitmapKey.h
parent389666bf1fed53a92b8c320157ee5fc0d5173552 (diff)
SkPDF: properly dedup bitmaps in shaders
Diffstat (limited to 'src/pdf/SkBitmapKey.h')
-rw-r--r--src/pdf/SkBitmapKey.h1
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;