diff options
author | 2014-12-17 15:50:11 -0800 | |
---|---|---|
committer | 2014-12-17 15:50:11 -0800 | |
commit | 5531d51ce7426bdae7563547326fcf0bf926a083 (patch) | |
tree | 111625235b55e016756b32d9904d6d3bf059c73c /src/gpu/SkGpuDevice.h | |
parent | 1b28a3a4890e3b84b43181b3fe3690ac565930dc (diff) |
remove view matrix from context
BUG=skia:
Review URL: https://codereview.chromium.org/808703006
Diffstat (limited to 'src/gpu/SkGpuDevice.h')
-rw-r--r-- | src/gpu/SkGpuDevice.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h index b600f993cd..773110023c 100644 --- a/src/gpu/SkGpuDevice.h +++ b/src/gpu/SkGpuDevice.h @@ -163,9 +163,8 @@ private: virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return true; } - // sets the render target, clip, and matrix on GrContext. Use forceIdenity to override - // SkDraw's matrix and draw in device coords. - void prepareDraw(const SkDraw&, bool forceIdentity); + // sets the render target and clip on context + void prepareDraw(const SkDraw&); /** * Implementation for both drawBitmap and drawBitmapRect. @@ -184,12 +183,14 @@ private: // The tileSize and clippedSrcRect will be valid only if true is returned. bool shouldTileBitmap(const SkBitmap& bitmap, + const SkMatrix& viewMatrix, const GrTextureParams& sampler, const SkRect* srcRectPtr, int maxTileSize, int* tileSize, SkIRect* clippedSrcRect) const; void internalDrawBitmap(const SkBitmap&, + const SkMatrix& viewMatrix, const SkRect&, const GrTextureParams& params, const SkPaint& paint, @@ -197,6 +198,7 @@ private: bool bicubic, bool needsTextureDomain); void drawTiledBitmap(const SkBitmap& bitmap, + const SkMatrix& viewMatrix, const SkRect& srcRect, const SkIRect& clippedSrcRect, const GrTextureParams& params, |