Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: src/gpu/SkGpuDevice.h

Issue 1424313010: Separate out natively-texture image/bmp draws from cached-as-texture image/bmp draws (Closed) Base URL: https://skia.googlesource.com/skia.git@const
Patch Set: tiny Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/SkGpuDevice.h
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h
index b2031e8a229ab517a7e35850c59c2e5f3f826fd3..2dfdaa60fc3bbbeb753007f12988e2a01bc8cb5c 100644
--- a/src/gpu/SkGpuDevice.h
+++ b/src/gpu/SkGpuDevice.h
@@ -22,6 +22,7 @@ struct SkDrawProcs;
struct GrSkDrawProcs;
class GrAccelData;
+class GrTextureAdjuster;
struct GrCachedLayer;
/**
@@ -234,6 +235,27 @@ private:
int tileSize,
bool bicubic);
+ void drawTextureRect(GrTextureAdjuster*,
+ bool alphaTexture,
+ const SkRect& srcRect,
+ const SkRect& dstRect,
+ const SkMatrix& viewMatrix,
+ const GrClip& clip,
+ const SkPaint& paint,
+ SkCanvas::SrcRectConstraint constraint);
+
+ /** The localMatrix should be the transformation from the src rect to the dst rect. */
+ void drawTextureRectPrecomputedLocalMatrix(GrTextureAdjuster*,
+ bool alphaTexture,
+ const SkRect& srcRect,
+ const SkRect& dstRect,
+ const SkMatrix& viewMatrix,
+ const SkMatrix& localMatrix,
+ const GrClip& clip,
+ const SkPaint& paint,
+ SkCanvas::SrcRectConstraint constraint);
+
+
bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, const SkImageInfo&,

Powered by Google App Engine
This is Rietveld 408576698