Skip to content

Commit

Permalink
Revert "remove old name for SkCodec::kNoFrame"
Browse files Browse the repository at this point in the history
This reverts commit 06a477c.

Reason for revert: <INSERT REASONING HERE>

Original change's description:
> remove old name for SkCodec::kNoFrame
> 
> Cq-Include-Trybots: skia.primary:Build-Debian9-Clang-arm-Release-Flutter_Android
> Change-Id: I039aed7591aa7767046f28a48798b6fa2f7fd643
> Reviewed-on: https://skia-review.googlesource.com/c/169224
> Reviewed-by: Leon Scroggins <[email protected]>

[email protected],[email protected]

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: I6c61ee27a4167127c74c14e0f9e05a4bbac931a8
Cq-Include-Trybots: skia.primary:Build-Debian9-Clang-arm-Release-Flutter_Android
Reviewed-on: https://skia-review.googlesource.com/c/170422
Reviewed-by: Mike Klein <[email protected]>
Commit-Queue: Mike Klein <[email protected]>
  • Loading branch information
Mike Klein committed Nov 12, 2018
1 parent 5079d84 commit eb4d641
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions gn/flutter_defines.gni
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# found in the LICENSE file.
flutter_defines = [
"SK_DISABLE_EXPLICIT_GPU_RESOURCE_ALLOCATION",
"SK_LEGACY_SKCODEC_NONE_ENUM",

# Flutter always wants this https://github.com/flutter/flutter/issues/11402
"SK_ENABLE_DUMP_GPU",
Expand Down
5 changes: 5 additions & 0 deletions include/codec/SkCodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,11 @@ class SK_API SkCodec : SkNoncopyable {
// is residing in dst's memory.
static constexpr int kNoFrame = -1;

// This transitional definition was added in August 2018, and will eventually be removed.
#ifdef SK_LEGACY_SKCODEC_NONE_ENUM
static constexpr int kNone = kNoFrame;
#endif

/**
* Information about individual frames in a multi-framed image.
*/
Expand Down

0 comments on commit eb4d641

Please sign in to comment.