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

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

Issue 1754563003: Begin weaning GrClipMaskManager off of GrDrawTarget (take 2) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix fAuditTrail uses Created 4 years, 9 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 * Together these two functions flush all queued up draws to the Gpu. 94 * Together these two functions flush all queued up draws to the Gpu.
95 */ 95 */
96 void prepareBatches(GrBatchFlushState* flushState); 96 void prepareBatches(GrBatchFlushState* flushState);
97 void drawBatches(GrBatchFlushState* flushState); 97 void drawBatches(GrBatchFlushState* flushState);
98 98
99 /** 99 /**
100 * Gets the capabilities of the draw target. 100 * Gets the capabilities of the draw target.
101 */ 101 */
102 const GrCaps* caps() const { return fGpu->caps(); } 102 const GrCaps* caps() const { return fGpu->caps(); }
103 103
104 void drawBatch(const GrPipelineBuilder&, GrDrawBatch*); 104 void drawBatch(const GrPipelineBuilder&, GrDrawBatch*, const SkIRect* scisso rRect = nullptr);
105 105
106 /** 106 /**
107 * Draws path into the stencil buffer. The fill must be either even/odd or 107 * Draws path into the stencil buffer. The fill must be either even/odd or
108 * winding (not inverse or hairline). It will respect the HW antialias flag 108 * winding (not inverse or hairline). It will respect the HW antialias flag
109 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve r have an inverse 109 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve r have an inverse
110 * fill with stencil path 110 * fill with stencil path
111 */ 111 */
112 void stencilPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, const GrPath*, 112 void stencilPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, const GrPath*,
113 GrPathRendering::FillType); 113 GrPathRendering::FillType);
114 114
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 SkTDArray<GrDrawTarget*> fDependencies; 258 SkTDArray<GrDrawTarget*> fDependencies;
259 GrRenderTarget* fRenderTarget; 259 GrRenderTarget* fRenderTarget;
260 260
261 bool fDrawBatchBounds; 261 bool fDrawBatchBounds;
262 int fMaxBatchLookback; 262 int fMaxBatchLookback;
263 263
264 typedef SkRefCnt INHERITED; 264 typedef SkRefCnt INHERITED;
265 }; 265 };
266 266
267 #endif 267 #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