diff options
author | 2016-01-08 11:20:14 -0800 | |
---|---|---|
committer | 2016-01-08 11:20:14 -0800 | |
commit | 04d975ac34c97d4869f819d2ad7c9fda47c198af (patch) | |
tree | bc40e80665dd970535df05e7fbb12825e6cf2bea /src/core/SkBitmapDevice.cpp | |
parent | 0e101667d604e4902eb24e0c0939d4f5b12c96ec (diff) |
fix opacity check in SkBitmapDevice::Create
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
Diffstat (limited to 'src/core/SkBitmapDevice.cpp')
-rw-r--r-- | src/core/SkBitmapDevice.cpp | 2 |
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)) { |