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

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

Issue 1480353002: APIs which took colorPOI / coveragePOI pairs updated to take a GrPipelineOptimizations struct (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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/effects/SkArithmeticMode_gpu.cpp ('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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 void recordBatch(GrBatch*); 273 void recordBatch(GrBatch*);
274 bool installPipelineInDrawBatch(const GrPipelineBuilder* pipelineBuilder, 274 bool installPipelineInDrawBatch(const GrPipelineBuilder* pipelineBuilder,
275 const GrScissorState* scissor, 275 const GrScissorState* scissor,
276 GrDrawBatch* batch); 276 GrDrawBatch* batch);
277 277
278 // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required 278 // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required
279 // but couldn't be made. Otherwise, returns true. This method needs to be p rotected because it 279 // but couldn't be made. Otherwise, returns true. This method needs to be p rotected because it
280 // needs to be accessed by GLPrograms to setup a correct drawstate 280 // needs to be accessed by GLPrograms to setup a correct drawstate
281 bool setupDstReadIfNecessary(const GrPipelineBuilder&, 281 bool setupDstReadIfNecessary(const GrPipelineBuilder&,
282 const GrProcOptInfo& colorPOI, 282 const GrPipelineOptimizations& optimizations,
283 const GrProcOptInfo& coveragePOI,
284 GrXferProcessor::DstTexture*, 283 GrXferProcessor::DstTexture*,
285 const SkRect& batchBounds); 284 const SkRect& batchBounds);
286 285
287 void drawPathBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawPathBatch Base* batch, 286 void drawPathBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawPathBatch Base* batch,
288 GrPathRendering::FillType fill); 287 GrPathRendering::FillType fill);
289 // Check to see if this set of draw commands has been sent out 288 // Check to see if this set of draw commands has been sent out
290 void getPathStencilSettingsForFilltype(GrPathRendering::FillType, 289 void getPathStencilSettingsForFilltype(GrPathRendering::FillType,
291 const GrStencilAttachment*, 290 const GrStencilAttachment*,
292 GrStencilSettings*); 291 GrStencilSettings*);
293 bool setupClip(const GrPipelineBuilder&, 292 bool setupClip(const GrPipelineBuilder&,
(...skipping 19 matching lines...) Expand all
313 uint32_t fFlags; 312 uint32_t fFlags;
314 313
315 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci es' 314 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci es'
316 SkTDArray<GrDrawTarget*> fDependencies; 315 SkTDArray<GrDrawTarget*> fDependencies;
317 GrRenderTarget* fRenderTarget; 316 GrRenderTarget* fRenderTarget;
318 317
319 typedef SkRefCnt INHERITED; 318 typedef SkRefCnt INHERITED;
320 }; 319 };
321 320
322 #endif 321 #endif
OLDNEW
« no previous file with comments | « src/effects/SkArithmeticMode_gpu.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698