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

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

Issue 1227153003: Remove setFromPaint from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 5 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 unified diff | Download patch
« no previous file with comments | « src/gpu/GrPipelineBuilder.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 * LCD text, even if the client provided positions for hinted glyphs, 46 * LCD text, even if the client provided positions for hinted glyphs,
47 * and renders from a canonically-sized, generic set of paths for the 47 * and renders from a canonically-sized, generic set of paths for the
48 * given typeface. In the future we should work out a system for the 48 * given typeface. In the future we should work out a system for the
49 * client to know it should not provide hinted glyph positions. This 49 * client to know it should not provide hinted glyph positions. This
50 * render mode also tries to use GPU stroking for fake bold, even when 50 * render mode also tries to use GPU stroking for fake bold, even when
51 * SK_USE_FREETYPE_EMBOLDEN is set. 51 * SK_USE_FREETYPE_EMBOLDEN is set.
52 */ 52 */
53 kMaxPerformance_RenderMode, 53 kMaxPerformance_RenderMode,
54 }; 54 };
55 55
56 GrPipelineBuilder fPipelineBuilder;
57 GrPipelineBuilder::AutoRestoreFragmentProcessors fStateRestore;
58 SkScalar fTextRatio; 56 SkScalar fTextRatio;
59 float fTextInverseRatio; 57 float fTextInverseRatio;
60 SkGlyphCache* fGlyphCache; 58 SkGlyphCache* fGlyphCache;
61 GrPathRange* fGlyphs; 59 GrPathRange* fGlyphs;
62 GrStrokeInfo fStroke; 60 GrStrokeInfo fStroke;
63 uint16_t fGlyphIndices[kGlyphBuff erSize]; 61 uint16_t fGlyphIndices[kGlyphBuff erSize];
64 SkPoint fGlyphPositions[kGlyphBu fferSize]; 62 SkPoint fGlyphPositions[kGlyphBu fferSize];
65 int fQueuedGlyphCount; 63 int fQueuedGlyphCount;
66 int fFallbackGlyphsIdx; 64 int fFallbackGlyphsIdx;
67 SkMatrix fContextInitialMatrix; 65 SkMatrix fContextInitialMatrix;
(...skipping 26 matching lines...) Expand all
94 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix, 92 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix,
95 const SkIRect& regionClipBounds); 93 const SkIRect& regionClipBounds);
96 bool mapToFallbackContext(SkMatrix* inverse); 94 bool mapToFallbackContext(SkMatrix* inverse);
97 void appendGlyph(const SkGlyph&, const SkPoint&); 95 void appendGlyph(const SkGlyph&, const SkPoint&);
98 void flush(); 96 void flush();
99 void finish(); 97 void finish();
100 98
101 }; 99 };
102 100
103 #endif 101 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPipelineBuilder.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698