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

Unified Diff: src/gpu/effects/GrTextureDomain.h

Issue 422123003: Adding repeat mode to texture domain (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 5 months 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/effects/GrTextureDomain.h
diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h
index 80a617ef722eff937f9eb1ef381b97b83768605b..ef6ffbe51692b250a8e18ff57d017e93522b9900 100644
--- a/src/gpu/effects/GrTextureDomain.h
+++ b/src/gpu/effects/GrTextureDomain.h
@@ -26,8 +26,9 @@ public:
kIgnore_Mode, // Ignore the texture domain rectangle.
kClamp_Mode, // Clamp texture coords to the domain rectangle.
kDecal_Mode, // Treat the area outside the domain rectangle as fully transparent.
+ kRepeat_Mode, // Wrap texture coordinates. NOTE: filtering may not work as expected
Stephen White 2014/07/29 14:51:16 This comment is a little cryptic. You mean due to
bsalomon 2014/07/29 14:55:27 It's not related to NPOT. Using MIP or Bilerp filt
- kLastMode = kDecal_Mode
+ kLastMode = kRepeat_Mode
};
static const int kModeCount = kLastMode + 1;

Powered by Google App Engine
This is Rietveld 408576698