aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2014-10-28 11:10:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-28 11:10:49 -0700
commit6d22ecaa71cf4400feebc3438bf0e0dd68179500 (patch)
treebf091a4cbe05803189dc207bbfa89c24d11ff192 /src/gpu/effects
parent27c46a08a9210e9306b8ea1b00349ec198153c38 (diff)
Distance field path optimizations and clean up.
Adds the following: - Use cached geometry processor rather than recreating all the time. - Use context's quad index buffer. Review URL: https://codereview.chromium.org/683923002
Diffstat (limited to 'src/gpu/effects')
-rw-r--r--src/gpu/effects/GrDistanceFieldTextureEffect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/effects/GrDistanceFieldTextureEffect.h b/src/gpu/effects/GrDistanceFieldTextureEffect.h
index c24673bd27..ea02d195b7 100644
--- a/src/gpu/effects/GrDistanceFieldTextureEffect.h
+++ b/src/gpu/effects/GrDistanceFieldTextureEffect.h
@@ -21,6 +21,8 @@ enum GrDistanceFieldEffectFlags {
kUseLCD_DistanceFieldEffectFlag = 0x04, // use lcd text
kBGR_DistanceFieldEffectFlag = 0x08, // lcd display has bgr order
kPortrait_DistanceFieldEffectFlag = 0x10, // lcd display is in portrait mode (not used yet)
+
+ kInvalid_DistanceFieldEffectFlag = 0x80, // invalid state (for initialization)
kUniformScale_DistanceFieldEffectMask = kSimilarity_DistanceFieldEffectFlag |
kRectToRect_DistanceFieldEffectFlag,