aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapDevice.cpp
diff options
context:
space:
mode:
authorGravatar lsalzman <lsalzman@mozilla.com>2016-01-08 11:20:14 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-08 11:20:14 -0800
commit04d975ac34c97d4869f819d2ad7c9fda47c198af (patch)
treebc40e80665dd970535df05e7fbb12825e6cf2bea /src/core/SkBitmapDevice.cpp
parent0e101667d604e4902eb24e0c0939d4f5b12c96ec (diff)
fix opacity check in SkBitmapDevice::Create
Diffstat (limited to 'src/core/SkBitmapDevice.cpp')
-rw-r--r--src/core/SkBitmapDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp
index ac3b9df082..1b9130ac75 100644
--- 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)) {