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

Side by Side Diff: src/gpu/GrStencilAndCoverTextContext.h

Issue 858343002: Rename GrOptDrawState to GrPipeline and GrDrawState to GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more nits Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « src/gpu/GrStencilAndCoverPathRenderer.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 #ifndef GrStencilAndCoverTextContext_DEFINED 8 #ifndef GrStencilAndCoverTextContext_DEFINED
9 #define GrStencilAndCoverTextContext_DEFINED 9 #define GrStencilAndCoverTextContext_DEFINED
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 * LCD text, even if the client provided positions for hinted glyphs, 44 * LCD text, even if the client provided positions for hinted glyphs,
45 * and renders from a canonically-sized, generic set of paths for the 45 * and renders from a canonically-sized, generic set of paths for the
46 * given typeface. In the future we should work out a system for the 46 * given typeface. In the future we should work out a system for the
47 * client to know it should not provide hinted glyph positions. This 47 * client to know it should not provide hinted glyph positions. This
48 * render mode also tries to use GPU stroking for fake bold, even when 48 * render mode also tries to use GPU stroking for fake bold, even when
49 * SK_USE_FREETYPE_EMBOLDEN is set. 49 * SK_USE_FREETYPE_EMBOLDEN is set.
50 */ 50 */
51 kMaxPerformance_RenderMode, 51 kMaxPerformance_RenderMode,
52 }; 52 };
53 53
54 GrDrawState fDrawState; 54 GrPipelineBuilder fPipelineBuilder;
55 GrDrawState::AutoRestoreEffects fStateRestore; 55 GrPipelineBuilder::AutoRestoreEffects fStateRestore;
56 SkScalar fTextRatio; 56 SkScalar fTextRatio;
57 float fTextInverseRatio; 57 float fTextInverseRatio;
58 SkGlyphCache* fGlyphCache; 58 SkGlyphCache* fGlyphCache;
59 GrPathRange* fGlyphs; 59 GrPathRange* fGlyphs;
60 SkStrokeRec fStroke; 60 SkStrokeRec fStroke;
61 uint16_t fGlyphIndices[kGlyphBufferSize]; 61 uint16_t fGlyphIndices[kGlyphBufferSize];
62 SkPoint fGlyphPositions[kGlyphBufferSize]; 62 SkPoint fGlyphPositions[kGlyphBufferSize];
63 int fQueuedGlyphCount; 63 int fQueuedGlyphCount;
64 int fFallbackGlyphsIdx; 64 int fFallbackGlyphsIdx;
65 SkMatrix fContextInitialMatrix; 65 SkMatrix fContextInitialMatrix;
(...skipping 16 matching lines...) Expand all
82 void init(const GrPaint&, const SkPaint&, size_t textByteLength, RenderMode, 82 void init(const GrPaint&, const SkPaint&, size_t textByteLength, RenderMode,
83 const SkMatrix& viewMatrix); 83 const SkMatrix& viewMatrix);
84 bool mapToFallbackContext(SkMatrix* inverse); 84 bool mapToFallbackContext(SkMatrix* inverse);
85 void appendGlyph(const SkGlyph&, const SkPoint&); 85 void appendGlyph(const SkGlyph&, const SkPoint&);
86 void flush(); 86 void flush();
87 void finish(); 87 void finish();
88 88
89 }; 89 };
90 90
91 #endif 91 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrStencilAndCoverPathRenderer.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698