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/GrPathRenderer.h

Issue 2262473003: Define clear regions in terms of GrFixedClip (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_fixedcliptosrc
Patch Set: rebase Created 4 years, 3 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/GrGpuCommandBuffer.cpp ('k') | src/gpu/batches/GrClearBatch.h » ('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 2011 Google Inc. 2 * Copyright 2011 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 GrPathRenderer_DEFINED 8 #ifndef GrPathRenderer_DEFINED
9 #define GrPathRenderer_DEFINED 9 #define GrPathRenderer_DEFINED
10 10
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 * 178 *
179 * fResourceProvider The resource provider for creating gpu resources t o render the path 179 * fResourceProvider The resource provider for creating gpu resources t o render the path
180 * fDrawContext The target of the draws 180 * fDrawContext The target of the draws
181 * fViewMatrix Matrix applied to the path. 181 * fViewMatrix Matrix applied to the path.
182 * fPath The path to draw. 182 * fPath The path to draw.
183 * fIsAA Is the path to be drawn AA (only set when MSAA is available) 183 * fIsAA Is the path to be drawn AA (only set when MSAA is available)
184 */ 184 */
185 struct StencilPathArgs { 185 struct StencilPathArgs {
186 GrResourceProvider* fResourceProvider; 186 GrResourceProvider* fResourceProvider;
187 GrDrawContext* fDrawContext; 187 GrDrawContext* fDrawContext;
188 const GrFixedClip* fClip; 188 const GrClip* fClip;
189 const SkMatrix* fViewMatrix; 189 const SkMatrix* fViewMatrix;
190 bool fIsAA; 190 bool fIsAA;
191 const GrShape* fShape; 191 const GrShape* fShape;
192 192
193 #ifdef SK_DEBUG 193 #ifdef SK_DEBUG
194 void validate() const { 194 void validate() const {
195 SkASSERT(fResourceProvider); 195 SkASSERT(fResourceProvider);
196 SkASSERT(fDrawContext); 196 SkASSERT(fDrawContext);
197 SkASSERT(fViewMatrix); 197 SkASSERT(fViewMatrix);
198 SkASSERT(fShape); 198 SkASSERT(fShape);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 drawArgs.fShape = args.fShape; 285 drawArgs.fShape = args.fShape;
286 drawArgs.fAntiAlias = false; // In this case the MSAA handles the AA so we want to draw BW 286 drawArgs.fAntiAlias = false; // In this case the MSAA handles the AA so we want to draw BW
287 drawArgs.fGammaCorrect = false; 287 drawArgs.fGammaCorrect = false;
288 this->drawPath(drawArgs); 288 this->drawPath(drawArgs);
289 } 289 }
290 290
291 typedef SkRefCnt INHERITED; 291 typedef SkRefCnt INHERITED;
292 }; 292 };
293 293
294 #endif 294 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpuCommandBuffer.cpp ('k') | src/gpu/batches/GrClearBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698