diff options
author | Brian Salomon <bsalomon@google.com> | 2017-08-18 09:16:57 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-18 14:37:09 +0000 |
commit | 20af6d12eefd8d937bc13bdb7fa0a9ac86b699af (patch) | |
tree | 6773b3029cb9c426c5e3daaed28b1f4e34740e4d /src/gpu/SkGpuDevice.h | |
parent | f6df1cd993c4cd717b40c5f19c2b96029250ac9b (diff) |
Revert "Revert "Add GrTextureOp and use to implement SkGpuDevice::drawImage[Rect]() when possible""
This reverts commit ceef4fb5c498003be77a32a46cedfbf5da22a274.
Bug: skia:
Change-Id: I50b738169b4cf9e06cbe0b5fad0234b506717b66
Reviewed-on: https://skia-review.googlesource.com/36201
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/SkGpuDevice.h')
-rw-r--r-- | src/gpu/SkGpuDevice.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h index f1bd937269..0b7e286aae 100644 --- a/src/gpu/SkGpuDevice.h +++ b/src/gpu/SkGpuDevice.h @@ -21,6 +21,7 @@ #include "GrTypes.h" class GrAccelData; +class GrTextureMaker; class GrTextureProducer; struct GrCachedLayer; @@ -205,12 +206,30 @@ private: bool bicubic, bool needsTextureDomain); + void drawPinnedTextureProxy(sk_sp<GrTextureProxy>, + uint32_t pinnedUniqueID, + SkColorSpace*, + SkAlphaType alphaType, + const SkRect* srcRect, + const SkRect* dstRect, + SkCanvas::SrcRectConstraint, + const SkMatrix& viewMatrix, + const SkPaint&); + + void drawTextureMaker(GrTextureMaker* maker, + int imageW, + int imageH, + const SkRect* srcRect, + const SkRect* dstRect, + SkCanvas::SrcRectConstraint, + const SkMatrix& viewMatrix, + const SkPaint&); + void drawTextureProducer(GrTextureProducer*, const SkRect* srcRect, const SkRect* dstRect, SkCanvas::SrcRectConstraint, const SkMatrix& viewMatrix, - const GrClip&, const SkPaint&); void drawTextureProducerImpl(GrTextureProducer*, @@ -219,7 +238,6 @@ private: SkCanvas::SrcRectConstraint, const SkMatrix& viewMatrix, const SkMatrix& srcToDstMatrix, - const GrClip&, const SkPaint&); bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer, |