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