Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Unified Diff: src/gpu/SkGpuDevice.cpp

Issue 329553005: fix when DEVICE_CONFIG is still defined (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/SkGpuDevice.cpp
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 44120a220f7ab84f3b2e16eca5326fdb61dba851..f847765ee94f6f41760435c38b3fcf1baa803a14 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698