projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e10166
)
fix opacity check in SkBitmapDevice::Create
author
lsalzman
<lsalzman@mozilla.com>
Fri, 8 Jan 2016 19:20:14 +0000
(11:20 -0800)
committer
Commit bot
<commit-bot@chromium.org>
Fri, 8 Jan 2016 19:20:14 +0000
(11:20 -0800)
BUG=skia:4777
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1576453002
Review URL: https://codereview.chromium.org/
1576453002
src/core/SkBitmapDevice.cpp
patch
|
blob
|
history
diff --git
a/src/core/SkBitmapDevice.cpp
b/src/core/SkBitmapDevice.cpp
index ac3b9df0827ed51aedfb5f5520c7457ced5e7a8a..1b9130ac759b25af82f568ca09d49b4ebce06e27 100644
(file)
--- a/
src/core/SkBitmapDevice.cpp
+++ b/
src/core/SkBitmapDevice.cpp
@@
-95,7
+95,7
@@
SkBitmapDevice* SkBitmapDevice::Create(const SkImageInfo& origInfo,
if (!bitmap.setInfo(info)) {
return nullptr;
}
- } else if (
bitmap.info()
.isOpaque()) {
+ } else if (
info
.isOpaque()) {
// If this bitmap is opaque, we don't have any sensible default color,
// so we just return uninitialized pixels.
if (!bitmap.tryAllocPixels(info)) {