diff options
author | 2017-04-05 17:17:16 -0400 | |
---|---|---|
committer | 2017-04-05 21:36:34 +0000 | |
commit | 4f783f8ada809a5a4146545fedb23bf0a362208b (patch) | |
tree | 4ab64adbf258790d9e4e9b9adc31d11d17a15d2f /include/core/SkBitmap.h | |
parent | 0c9d0b4e03b6c10778329e995b5dfdcb97954b28 (diff) |
restore old api for android to unblock roll
Bug: skia:
Change-Id: Ib115666503784b928f44f04878ed06a5aa844e6e
NOTRY=True
Reviewed-on: https://skia-review.googlesource.com/11420
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'include/core/SkBitmap.h')
-rw-r--r-- | include/core/SkBitmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h index 8487d411b1..5a1036cc56 100644 --- a/include/core/SkBitmap.h +++ b/include/core/SkBitmap.h @@ -291,6 +291,11 @@ public: this->allocPixels(info); } + // TEMPORARY -- remove after updating Android BitmapTests.cpp:35 + void allocPixels(const SkImageInfo& info, std::nullptr_t, SkColorTable* ctable) { + this->allocPixels(info, sk_ref_sp(ctable)); + } + /** * Install a pixelref that wraps the specified pixels and rowBytes, and * optional ReleaseProc and context. When the pixels are no longer |