Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index a77e54c2ffd39f6755e40502f542bcb744add1a1..d76a1808628418246f183b51e6bd59b2acf4948e 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -64,18 +64,15 @@ |
} |
SkPixelGeometry SkBaseDevice::CreateInfo::AdjustGeometry(const SkImageInfo& info, |
- Usage usage, |
+ TileUsage tileUsage, |
SkPixelGeometry geo) { |
- switch (usage) { |
- case kGeneral_Usage: |
- break; |
- case kSaveLayer_Usage: |
+ switch (tileUsage) { |
+ case kPossible_TileUsage: |
+ break; |
+ case kNever_TileUsage: |
if (info.alphaType() != kOpaque_SkAlphaType) { |
geo = kUnknown_SkPixelGeometry; |
} |
- break; |
- case kImageFilter_Usage: |
- geo = kUnknown_SkPixelGeometry; |
break; |
} |
return geo; |
@@ -86,7 +83,7 @@ |
// anyway to document logically what is going on. |
// |
fLeakyProperties->setPixelGeometry(CreateInfo::AdjustGeometry(this->imageInfo(), |
- kGeneral_Usage, |
+ kPossible_TileUsage, |
geo)); |
} |