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

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

Issue 2241873002: Remove stencil settings param from stencilPath() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/GrDrawContextPriv.h ('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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 /** 102 /**
103 * Gets the capabilities of the draw target. 103 * Gets the capabilities of the draw target.
104 */ 104 */
105 const GrCaps* caps() const { return fGpu->caps(); } 105 const GrCaps* caps() const { return fGpu->caps(); }
106 106
107 void drawBatch(const GrPipelineBuilder&, GrDrawContext*, const GrClip&, GrDr awBatch*); 107 void drawBatch(const GrPipelineBuilder&, GrDrawContext*, const GrClip&, GrDr awBatch*);
108 108
109 void addBatch(sk_sp<GrBatch>); 109 void addBatch(sk_sp<GrBatch>);
110 110
111 /** 111 /**
112 * Draws path into the stencil buffer. The path's fill must be either even/o dd or 112 * Draws the path into user stencil bits. Upon return, all user stencil valu es
113 * winding (not inverse or hairline). It will respect the HW antialias boole an 113 * inside the path will be nonzero. The path's fill must be either even/odd or
114 * (if possible in the 3D API). Note, we will never have an inverse 114 * winding (notnverse or hairline).It will respect the HW antialias boolean (if
115 * fill with stencil path 115 * possible in the 3D API). Note, we will never have an inverse fill with
116 * stencil path.
116 */ 117 */
117 void stencilPath(GrDrawContext*, 118 void stencilPath(GrDrawContext*,
118 const GrClip&, 119 const GrClip&,
119 const GrUserStencilSettings*,
120 bool useHWAA, 120 bool useHWAA,
121 const SkMatrix& viewMatrix, 121 const SkMatrix& viewMatrix,
122 const GrPath*); 122 const GrPath*);
123 123
124 /** Discards the contents render target. */ 124 /** Discards the contents render target. */
125 void discard(GrRenderTarget*); 125 void discard(GrRenderTarget*);
126 126
127 /** 127 /**
128 * Copies a pixel rectangle from one surface to another. This call may final ize 128 * Copies a pixel rectangle from one surface to another. This call may final ize
129 * reserved vertex/index data (as though a draw call was made). The src pixe ls 129 * reserved vertex/index data (as though a draw call was made). The src pixe ls
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 bool fDrawBatchBounds; 231 bool fDrawBatchBounds;
232 int fMaxBatchLookback; 232 int fMaxBatchLookback;
233 int fMaxBatchLookahead; 233 int fMaxBatchLookahead;
234 234
235 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; 235 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering;
236 236
237 typedef SkRefCnt INHERITED; 237 typedef SkRefCnt INHERITED;
238 }; 238 };
239 239
240 #endif 240 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContextPriv.h ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698