diff options
author | 2015-12-09 17:06:02 -0800 | |
---|---|---|
committer | 2015-12-09 17:06:02 -0800 | |
commit | f1ecd21bf6fd69953f78dd79502c7c9df92cdc9a (patch) | |
tree | ea07eebdf4e682ecabe9814392ded593bc032be9 /src/gpu/GrTextureParamsAdjuster.cpp | |
parent | b3685c8646c956bfe1bcce35e72ed96a44009f9e (diff) |
Make "alpha only" be a property of GrTextureProducer
Review URL: https://codereview.chromium.org/1507973005
Diffstat (limited to 'src/gpu/GrTextureParamsAdjuster.cpp')
-rw-r--r-- | src/gpu/GrTextureParamsAdjuster.cpp | 6 |
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 || |