skia2/include
Leon Scroggins III 87caae61cd Move SkBitmapRegionCodec into client_utils/android
Bug: skia:10154

This will make it clear that these files are for Android use and
avoid compiling them for other clients.

Update testing tools to use android::skia::BitmapRegionDecoder, but
only if SK_ENABLE_ANDROID_UTILS is defined.

Take this opportunity to clean up the class:
- The base class, which was originally designed to allow switching
  amongst different implementations, is no longer needed. Rename
  SkBitmapRegionCodec to android::skia::BitmapRegionDecoder
  (following the new convention and matching the Java API name).
  Continue to inherit from SkBitmapRegionDecoder temporarily, to
  allow Android to switch to the new API.
- Use std::unique_ptr instead of passing raw pointers.

Add a test to verify that we only create a BitmapRegionDecoder if
it is one of the supported types.

Change-Id: Ied13fc8acb105fde042553331846d95ae15d6b57
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/287498
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
2020-05-20 20:06:48 +00:00
..
android Move SkBitmapRegionCodec into client_utils/android 2020-05-20 20:06:48 +00:00
atlastext move SkDeque.h into private 2020-02-18 02:05:08 +00:00
c Small fixes to C API. Add SK_API and fix function signature mismatch. 2019-06-07 01:29:23 +00:00
codec Allow decoding without color conversion - part 2 2020-02-07 19:24:33 +00:00
config rm SkPreConfig.h and SkPostConfig.h 2020-02-06 19:16:43 +00:00
core Reland "Implement submit API to GrContext." 2020-05-20 19:00:25 +00:00
docs Allow passing multiple node IDs per PDF structure node. 2020-02-24 18:21:16 +00:00
effects add new patheffect for stroke-and-fill 2020-05-20 15:01:26 +00:00
encode Revert "add runtime registration for encoders" 2019-05-15 22:02:39 +00:00
gpu Reland "Implement submit API to GrContext." 2020-05-20 19:00:25 +00:00
pathops rm SkPreConfig.h and SkPostConfig.h 2020-02-06 19:16:43 +00:00
ports Remove CGFontRef parameter from SkMakeTypefaceFromCTFont 2020-01-31 18:35:10 +00:00
private Reland "Cache hb_face." 2020-05-19 17:42:14 +00:00
svg [svgcanvas] Add flag to suppress newlines and tabs in XML 2019-08-21 20:17:37 +00:00
third_party Remove D3D12X. 2020-04-06 12:02:37 +00:00
utils extract original paths at big size to improve precision 2020-05-19 17:27:22 +00:00