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

Side by Side Diff: src/gpu/GrDrawTarget.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/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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 bool setupDstReadIfNecessary(const GrPipelineBuilder&, 207 bool setupDstReadIfNecessary(const GrPipelineBuilder&,
208 GrRenderTarget*, 208 GrRenderTarget*,
209 const GrClip&, 209 const GrClip&,
210 const GrPipelineOptimizations& optimizations, 210 const GrPipelineOptimizations& optimizations,
211 GrXferProcessor::DstTexture*, 211 GrXferProcessor::DstTexture*,
212 const SkRect& batchBounds); 212 const SkRect& batchBounds);
213 213
214 void addDependency(GrDrawTarget* dependedOn); 214 void addDependency(GrDrawTarget* dependedOn);
215 215
216 // Used only by drawContextPriv. 216 // Used only by drawContextPriv.
217 void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*); 217 void clearStencilClip(const GrFixedClip&, bool insideStencilMask, GrRenderTa rget*);
218 218
219 struct RecordedBatch { 219 struct RecordedBatch {
220 sk_sp<GrBatch> fBatch; 220 sk_sp<GrBatch> fBatch;
221 SkRect fClippedBounds; 221 SkRect fClippedBounds;
222 }; 222 };
223 SkSTArray<256, RecordedBatch, true> fRecordedBatches; 223 SkSTArray<256, RecordedBatch, true> fRecordedBatches;
224 GrClearBatch* fLastFullClearBatch; 224 GrClearBatch* fLastFullClearBatch;
225 // The context is only in service of the GrClip, remove once it doesn't need this. 225 // The context is only in service of the GrClip, remove once it doesn't need this.
226 GrContext* fContext; 226 GrContext* fContext;
227 GrGpu* fGpu; 227 GrGpu* fGpu;
(...skipping 11 matching lines...) Expand all
239 bool fDrawBatchBounds; 239 bool fDrawBatchBounds;
240 int fMaxBatchLookback; 240 int fMaxBatchLookback;
241 int fMaxBatchLookahead; 241 int fMaxBatchLookahead;
242 242
243 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; 243 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering;
244 244
245 typedef SkRefCnt INHERITED; 245 typedef SkRefCnt INHERITED;
246 }; 246 };
247 247
248 #endif 248 #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