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

Side by Side Diff: src/gpu/GrDistanceFieldTextContext.cpp

Issue 683923002: Distance field path optimizations and clean up. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrDistanceFieldTextContext.h" 8 #include "GrDistanceFieldTextContext.h"
9 #include "GrAtlas.h" 9 #include "GrAtlas.h"
10 #include "GrBitmapTextContext.h" 10 #include "GrBitmapTextContext.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #if SK_FORCE_DISTANCEFIELD_FONTS 67 #if SK_FORCE_DISTANCEFIELD_FONTS
68 fEnableDFRendering = true; 68 fEnableDFRendering = true;
69 #else 69 #else
70 fEnableDFRendering = enable; 70 fEnableDFRendering = enable;
71 #endif 71 #endif
72 fStrike = NULL; 72 fStrike = NULL;
73 fGammaTexture = NULL; 73 fGammaTexture = NULL;
74 74
75 fEffectTextureUniqueID = SK_InvalidUniqueID; 75 fEffectTextureUniqueID = SK_InvalidUniqueID;
76 fEffectColor = GrColor_ILLEGAL; 76 fEffectColor = GrColor_ILLEGAL;
77 fEffectFlags = 0; 77 fEffectFlags = kInvalid_DistanceFieldEffectFlag;
78 78
79 fVertices = NULL; 79 fVertices = NULL;
80 fCurrVertex = 0; 80 fCurrVertex = 0;
81 fAllocVertexCount = 0; 81 fAllocVertexCount = 0;
82 fTotalVertexCount = 0; 82 fTotalVertexCount = 0;
83 fCurrTexture = NULL; 83 fCurrTexture = NULL;
84 84
85 fVertexBounds.setLargestInverted(); 85 fVertexBounds.setLargestInverted();
86 } 86 }
87 87
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 } 697 }
698 } 698 }
699 699
700 inline void GrDistanceFieldTextContext::finish() { 700 inline void GrDistanceFieldTextContext::finish() {
701 this->flush(); 701 this->flush();
702 fTotalVertexCount = 0; 702 fTotalVertexCount = 0;
703 703
704 GrTextContext::finish(); 704 GrTextContext::finish();
705 } 705 }
706 706
OLDNEW
« no previous file with comments | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/effects/GrDistanceFieldTextureEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698