aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureParamsAdjuster.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-12-09 17:06:02 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-09 17:06:02 -0800
commitf1ecd21bf6fd69953f78dd79502c7c9df92cdc9a (patch)
treeea07eebdf4e682ecabe9814392ded593bc032be9 /src/gpu/GrTextureParamsAdjuster.cpp
parentb3685c8646c956bfe1bcce35e72ed96a44009f9e (diff)
Make "alpha only" be a property of GrTextureProducer
Diffstat (limited to 'src/gpu/GrTextureParamsAdjuster.cpp')
-rw-r--r--src/gpu/GrTextureParamsAdjuster.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp
index 2aedad57ef..336ab6b10c 100644
--- a/src/gpu/GrTextureParamsAdjuster.cpp
+++ b/src/gpu/GrTextureParamsAdjuster.cpp
@@ -121,8 +121,10 @@ static GrTexture* copy_on_gpu(GrTexture* inputTexture, const SkIRect* subset,
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 ||