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

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

Issue 1116123003: Improve caching of dashed paths in GrStencilAndCoverPathRenderer (Closed) Base URL: https://skia.googlesource.com/skia.git@dashing-nvpr-01
Patch Set: Created 5 years, 7 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
11 #include "GrTextContext.h" 11 #include "GrTextContext.h"
12 #include "GrDrawTarget.h" 12 #include "GrDrawTarget.h"
13 #include "SkStrokeRec.h" 13 #include "GrStrokeInfo.h"
14 14
15 class GrTextStrike; 15 class GrTextStrike;
16 class GrPath; 16 class GrPath;
17 class GrPathRange; 17 class GrPathRange;
18 18
19 /* 19 /*
20 * This class implements text rendering using stencil and cover path rendering 20 * This class implements text rendering using stencil and cover path rendering
21 * (by the means of GrDrawTarget::drawPath). 21 * (by the means of GrDrawTarget::drawPath).
22 * This class exposes the functionality through GrTextContext interface. 22 * This class exposes the functionality through GrTextContext interface.
23 */ 23 */
(...skipping 27 matching lines...) Expand all
51 */ 51 */
52 kMaxPerformance_RenderMode, 52 kMaxPerformance_RenderMode,
53 }; 53 };
54 54
55 GrPipelineBuilder fPipelineBuilder; 55 GrPipelineBuilder fPipelineBuilder;
56 GrPipelineBuilder::AutoRestoreFragmentProcessors fStateRestore; 56 GrPipelineBuilder::AutoRestoreFragmentProcessors fStateRestore;
57 SkScalar fTextRatio; 57 SkScalar fTextRatio;
58 float fTextInverseRatio; 58 float fTextInverseRatio;
59 SkGlyphCache* fGlyphCache; 59 SkGlyphCache* fGlyphCache;
60 GrPathRange* fGlyphs; 60 GrPathRange* fGlyphs;
61 SkStrokeRec fStroke; 61 GrStrokeInfo fStroke;
62 uint16_t fGlyphIndices[kGlyphBuff erSize]; 62 uint16_t fGlyphIndices[kGlyphBuff erSize];
63 SkPoint fGlyphPositions[kGlyphBu fferSize]; 63 SkPoint fGlyphPositions[kGlyphBu fferSize];
64 int fQueuedGlyphCount; 64 int fQueuedGlyphCount;
65 int fFallbackGlyphsIdx; 65 int fFallbackGlyphsIdx;
66 SkMatrix fContextInitialMatrix; 66 SkMatrix fContextInitialMatrix;
67 SkMatrix fViewMatrix; 67 SkMatrix fViewMatrix;
68 SkMatrix fLocalMatrix; 68 SkMatrix fLocalMatrix;
69 bool fUsingDeviceSpaceGlyphs; 69 bool fUsingDeviceSpaceGlyphs;
70 70
71 GrStencilAndCoverTextContext(GrContext*, SkGpuDevice*, const SkDevicePropert ies&); 71 GrStencilAndCoverTextContext(GrContext*, SkGpuDevice*, const SkDevicePropert ies&);
(...skipping 15 matching lines...) Expand all
87 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix, 87 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix,
88 const SkIRect& regionClipBounds); 88 const SkIRect& regionClipBounds);
89 bool mapToFallbackContext(SkMatrix* inverse); 89 bool mapToFallbackContext(SkMatrix* inverse);
90 void appendGlyph(const SkGlyph&, const SkPoint&); 90 void appendGlyph(const SkGlyph&, const SkPoint&);
91 void flush(); 91 void flush();
92 void finish(); 92 void finish();
93 93
94 }; 94 };
95 95
96 #endif 96 #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