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

Unified Diff: src/gpu/SkGrPriv.h

Issue 1454933002: Initial implementation of GPU no filter NinePatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks 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
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | src/gpu/batches/GrNinePatch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/SkGrPriv.h
diff --git a/src/gpu/SkGrPriv.h b/src/gpu/SkGrPriv.h
index 5924ea647dc7045f99e2fede0c090f0d79f76a5c..77a464c8d886b14233b41294cae8bae8bb98ffbd 100644
--- a/src/gpu/SkGrPriv.h
+++ b/src/gpu/SkGrPriv.h
@@ -84,6 +84,15 @@ inline bool SkPaintToGrPaintWithPrimitiveColor(GrContext* context, const SkPaint
false, grPaint);
}
+/** This is used when there may or may not be a shader, and the caller wants to plugin a texture
+ lookup. If there is a shader, then its output will only be used if the texture is alpha8. */
+bool SkPaintToGrPaintWithTexture(GrContext* context,
+ const SkPaint& paint,
+ const SkMatrix& viewM,
+ const GrFragmentProcessor* fp,
+ bool textureIsAlphaOnly,
+ GrPaint* grPaint);
+
//////////////////////////////////////////////////////////////////////////////
GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&);
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | src/gpu/batches/GrNinePatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698