projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
skia
/
src
/
images
/
SkMovie_gif.cpp
diff --git
a/src/third_party/skia/src/images/SkMovie_gif.cpp
b/src/third_party/skia/src/images/SkMovie_gif.cpp
index
decefd5
..
3810db5
100644
(file)
--- a/
src/third_party/skia/src/images/SkMovie_gif.cpp
+++ b/
src/third_party/skia/src/images/SkMovie_gif.cpp
@@
-364,11
+364,11
@@
bool SkGIFMovie::onGetBitmap(SkBitmap* bm)
startIndex = 0;
// create bitmap
startIndex = 0;
// create bitmap
- if (!bm->
allocPixels(SkImageInfo::MakeN32Premul(width, height)
)) {
+ if (!bm->
tryAllocN32Pixels(width, height
)) {
return false;
}
// create bitmap for backup
return false;
}
// create bitmap for backup
- if (!fBackup.
allocPixels(SkImageInfo::MakeN32Premul(width, height)
)) {
+ if (!fBackup.
tryAllocN32Pixels(width, height
)) {
return false;
}
} else if (startIndex > fCurrIndex) {
return false;
}
} else if (startIndex > fCurrIndex) {