diff options
author | 2014-06-10 14:56:29 -0700 | |
---|---|---|
committer | 2014-06-10 14:56:29 -0700 | |
commit | e50da8fb83915158f09b07c8f60f952e2eacfb43 (patch) | |
tree | 30ae59b2f031bf7bddb2516d7a55f629cd01e26f | |
parent | ae614409e4cff083c070face78cc349153d0b932 (diff) |
fix when DEVICE_CONFIG is still defined
BUG=skia:
R=djsollen@google.com, bsalomon@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/329553005
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 15539a9dcf..5e2ff10f63 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -357,9 +357,7 @@ SkBitmap::Config SkGpuDevice::config() const { if (NULL == fRenderTarget) { return SkBitmap::kNo_Config; } - - bool isOpaque; - return grConfig2skConfig(fRenderTarget->config(), &isOpaque); + return SkColorTypeToBitmapConfig(fRenderTarget->info().colorType()); } #endif |