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

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

Issue 1374853004: Fix caching of nvpr glyphs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: MSVC warnings Created 5 years, 2 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/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.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 2010 Google Inc. 2 * Copyright 2010 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 GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void drawPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, GrColor color, 85 void drawPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, GrColor color,
86 const GrPath*, GrPathRendering::FillType); 86 const GrPath*, GrPathRendering::FillType);
87 87
88 /** 88 /**
89 * Draws the aggregate path from combining multiple. Note that this will not 89 * Draws the aggregate path from combining multiple. Note that this will not
90 * always be equivalent to back-to-back calls to drawPath(). It will respect 90 * always be equivalent to back-to-back calls to drawPath(). It will respect
91 * the HW antialias flag on the GrPipelineBuilder (if possible in the 3D API ). 91 * the HW antialias flag on the GrPipelineBuilder (if possible in the 3D API ).
92 * 92 *
93 * TODO: Remove this function and construct the batch outside GrDrawTarget. 93 * TODO: Remove this function and construct the batch outside GrDrawTarget.
94 * 94 *
95 * @param draw The range, transforms, and indices for the draw. 95 * @param draw The transforms and indices for the draw.
96 * This object must only be drawn once. The draw 96 * This object must only be drawn once. The draw
97 * may modify its contents. 97 * may modify its contents.
98 * @param fill Fill type for drawing all the paths 98 * @param fill Fill type for drawing all the paths
99 */ 99 */
100 void drawPathsFromRange(const GrPipelineBuilder&, 100 void drawPathsFromRange(const GrPipelineBuilder&,
101 const SkMatrix& viewMatrix, 101 const SkMatrix& viewMatrix,
102 const SkMatrix& localMatrix, 102 const SkMatrix& localMatrix,
103 GrColor color, 103 GrColor color,
104 GrPathRange* range,
104 GrPathRangeDraw* draw, 105 GrPathRangeDraw* draw,
105 GrPathRendering::FillType fill); 106 GrPathRendering::FillType fill);
106 107
107 /** 108 /**
108 * Helper function for drawing rects. 109 * Helper function for drawing rects.
109 * 110 *
110 * @param rect the rect to draw 111 * @param rect the rect to draw
111 * @param localRect optional rect that specifies local coords to map onto 112 * @param localRect optional rect that specifies local coords to map onto
112 * rect. If nullptr then rect serves as the local coords. 113 * rect. If nullptr then rect serves as the local coords.
113 * @param localMatrix Optional local matrix. The local coordinates are speci fied by localRect, 114 * @param localMatrix Optional local matrix. The local coordinates are speci fied by localRect,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 GrGpu* fGpu; 232 GrGpu* fGpu;
232 GrResourceProvider* fResourceProvider; 233 GrResourceProvider* fResourceProvider;
233 GrBatchFlushState fFlushState; 234 GrBatchFlushState fFlushState;
234 bool fFlushing; 235 bool fFlushing;
235 int fFirstUnpreparedBatch; 236 int fFirstUnpreparedBatch;
236 237
237 typedef SkRefCnt INHERITED; 238 typedef SkRefCnt INHERITED;
238 }; 239 };
239 240
240 #endif 241 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698