diff options
Diffstat (limited to 'src/animator/SkSnapshot.cpp')
-rw-r--r-- | src/animator/SkSnapshot.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/animator/SkSnapshot.cpp b/src/animator/SkSnapshot.cpp index fbaedff730..6be1a53471 100644 --- a/src/animator/SkSnapshot.cpp +++ b/src/animator/SkSnapshot.cpp @@ -30,7 +30,7 @@ DEFINE_GET_MEMBER(SkSnapshot); SkSnapshot::SkSnapshot() { quality = 100 * SK_Scalar1; - type = (SkImageEncoder::Type) -1; + type = (SkEncodedImageFormat) -1; sequence = false; fSeqVal = 0; } @@ -38,7 +38,7 @@ SkSnapshot::SkSnapshot() bool SkSnapshot::draw(SkAnimateMaker& maker) { SkASSERT(type >= 0); SkASSERT(filename.size() > 0); - SkImageEncoder* encoder = SkImageEncoder::Create((SkImageEncoder::Type) type); + SkImageEncoder* encoder = SkImageEncoder::Create((SkEncodedImageFormat) type); if (!encoder) { return false; } @@ -54,9 +54,9 @@ bool SkSnapshot::draw(SkAnimateMaker& maker) { if (++fSeqVal > 999) sequence = false; } - if (type == SkImageEncoder::kJPEG_Type) + if (type == SkEncodedImageFormat::kJPEG) name.append(".jpg"); - else if (type == SkImageEncoder::kPNG_Type) + else if (type == SkEncodedImageFormat::kPNG) name.append(".png"); SkBitmap pixels; |