Make "alpha only" be a property of GrTextureProducer
Review URL: https://codereview.chromium.org/1507973005
diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp
index 2aedad5..336ab6b 100644
--- a/src/gpu/GrTextureParamsAdjuster.cpp
+++ b/src/gpu/GrTextureParamsAdjuster.cpp
@@ -121,8 +121,10 @@
return copy.detach();
}
-GrTextureAdjuster::GrTextureAdjuster(GrTexture* original, const SkIRect& contentArea)
- : INHERITED(contentArea.width(), contentArea.height())
+GrTextureAdjuster::GrTextureAdjuster(GrTexture* original,
+ const SkIRect& contentArea,
+ bool isAlphaOnly)
+ : INHERITED(contentArea.width(), contentArea.height(), isAlphaOnly)
, fOriginal(original) {
SkASSERT(SkIRect::MakeWH(original->width(), original->height()).contains(contentArea));
if (contentArea.fLeft > 0 || contentArea.fTop > 0 ||