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

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

Issue 1431593006: Fix mixed samples stencil clip (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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
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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 static int NumDependencies(const GrDrawTarget* dt) { 272 static int NumDependencies(const GrDrawTarget* dt) {
273 return dt->fDependencies.count(); 273 return dt->fDependencies.count();
274 } 274 }
275 static GrDrawTarget* Dependency(GrDrawTarget* dt, int index) { 275 static GrDrawTarget* Dependency(GrDrawTarget* dt, int index) {
276 return dt->fDependencies[index]; 276 return dt->fDependencies[index];
277 } 277 }
278 }; 278 };
279 279
280 void recordBatch(GrBatch*); 280 void recordBatch(GrBatch*);
281 bool installPipelineInDrawBatch(const GrPipelineBuilder* pipelineBuilder, 281 bool installPipelineInDrawBatch(const GrPipelineBuilder* pipelineBuilder,
282 const GrScissorState* scissor, 282 const GrAppliedClip& clip,
283 GrDrawBatch* batch); 283 GrDrawBatch* batch);
284 284
285 // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required 285 // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required
286 // but couldn't be made. Otherwise, returns true. This method needs to be p rotected because it 286 // but couldn't be made. Otherwise, returns true. This method needs to be p rotected because it
287 // needs to be accessed by GLPrograms to setup a correct drawstate 287 // needs to be accessed by GLPrograms to setup a correct drawstate
288 bool setupDstReadIfNecessary(const GrPipelineBuilder&, 288 bool setupDstReadIfNecessary(const GrPipelineBuilder&,
289 const GrProcOptInfo& colorPOI, 289 const GrProcOptInfo& colorPOI,
290 const GrProcOptInfo& coveragePOI, 290 const GrProcOptInfo& coveragePOI,
291 GrXferProcessor::DstTexture*, 291 GrXferProcessor::DstTexture*,
292 const SkRect& batchBounds); 292 const SkRect& batchBounds);
(...skipping 30 matching lines...) Expand all
323 Options fOptions; 323 Options fOptions;
324 324
325 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci es' 325 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci es'
326 SkTDArray<GrDrawTarget*> fDependencies; 326 SkTDArray<GrDrawTarget*> fDependencies;
327 GrRenderTarget* fRenderTarget; 327 GrRenderTarget* fRenderTarget;
328 328
329 typedef SkRefCnt INHERITED; 329 typedef SkRefCnt INHERITED;
330 }; 330 };
331 331
332 #endif 332 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698