diff options
author | Matt Sarett <msarett@google.com> | 2017-04-27 12:45:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-27 17:18:03 +0000 |
commit | d4a338f4d0a0cdc08d7d3668931c60997f0fa971 (patch) | |
tree | 676fe5dcd3d19c14c5bf091243cadea35ebef205 /gm/animatedGif.cpp | |
parent | 9fa99614ec4e695f6e7e9fe19508758757543b8c (diff) |
Delete copyTo(Allocator), hide copyTo() behind flag
Replace uses of copyTo() in Skia.
Bug: skia:6464
Change-Id: I921dc53a1c29a5176d18f05741f7c0b5a008e548
Reviewed-on: https://skia-review.googlesource.com/14502
Commit-Queue: Matt Sarett <msarett@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'gm/animatedGif.cpp')
-rw-r--r-- | gm/animatedGif.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gm/animatedGif.cpp b/gm/animatedGif.cpp index c7871e0d12..dd08abfd36 100644 --- a/gm/animatedGif.cpp +++ b/gm/animatedGif.cpp @@ -6,6 +6,7 @@ */ #include "gm.h" +#include "sk_tool_utils.h" #include "SkAnimTimer.h" #include "SkCanvas.h" #include "SkCodec.h" @@ -59,7 +60,8 @@ private: && static_cast<size_t>(requiredFrame) < fFrames.size()); SkBitmap& requiredBitmap = fFrames[requiredFrame]; // For simplicity, do not try to cache old frames - if (requiredBitmap.getPixels() && requiredBitmap.copyTo(&bm)) { + if (requiredBitmap.getPixels() && + sk_tool_utils::copy_to(&bm, requiredBitmap.colorType(), requiredBitmap)) { opts.fHasPriorFrame = true; } } |