| Index: src/pdf/SkPDFTypes.h
|
| diff --git a/src/pdf/SkPDFTypes.h b/src/pdf/SkPDFTypes.h
|
| index 5ed6386bddc1235d33a9dbcabe65c78a33a8bb6e..1f06c4c5fe63dc4cac3efb5991d066601ee97499 100644
|
| --- a/src/pdf/SkPDFTypes.h
|
| +++ b/src/pdf/SkPDFTypes.h
|
| @@ -392,6 +392,14 @@ public:
|
| */
|
| void insertInt(const char key[], int32_t value);
|
|
|
| + /**
|
| + * Calls insertInt() but asserts in debug builds that the value can be represented
|
| + * by an int32_t.
|
| + */
|
| + void insertInt(const char key[], size_t value) {
|
| + this->insertInt(key, SkToS32(value));
|
| + }
|
| +
|
| /** Add the scalar to the dictionary with the given key.
|
| * @param key The text of the key for this dictionary entry.
|
| * @param value The scalar value for this dictionary entry.
|
|
|