Simplify SkImageCacherator slightly
authorBrian Osman <brianosman@google.com>
Mon, 24 Apr 2017 20:44:03 +0000 (16:44 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 24 Apr 2017 21:11:44 +0000 (21:11 +0000)
commita28e2b07b7a11fc14be7178a32ce6bf726d8b0bd
tree3a190a1ea705078f9a2358631590a3f455ba4933
parent42a2a20b9114c904ce73d66d0105b81f19d93914
Simplify SkImageCacherator slightly

- lockAsBitmap supported reading back textures to a bitmap, but this was
  only used by one GM. Removed all of that code, and merged the two bitmap
  functions together.
- To make the GM cleaner, don't use SkImageCacherator directly - construct
  actual images.

Bug: skia:
Change-Id: Iad17184a02a72f89ccc851fa158764d6c871befa
Reviewed-on: https://skia-review.googlesource.com/14192
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
gm/image_pict.cpp
src/core/SkImageCacherator.cpp
src/core/SkImageCacherator.h
src/image/SkImage_Lazy.cpp