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

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

Issue 1285193004: Move willColorBlendWithDst from pipeline builder to GrPipelineOptimizations. (Closed) Base URL: https://skia.googlesource.com/skia.git@xpfail
Patch Set: Address comment Created 5 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/GrCommandBuilder.h ('k') | src/gpu/GrInOrderCommandBuilder.h » ('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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 const GrBatch* batch, const SkRect* devBounds, 209 const GrBatch* batch, const SkRect* devBounds,
210 GrDrawTarget* target); 210 GrDrawTarget* target);
211 211
212 bool valid() const { return SkToBool(fArgs.fPipelineBuilder); } 212 bool valid() const { return SkToBool(fArgs.fPipelineBuilder); }
213 213
214 const GrPipeline::CreateArgs& pipelineCreateArgs() const { 214 const GrPipeline::CreateArgs& pipelineCreateArgs() const {
215 SkASSERT(this->valid()); 215 SkASSERT(this->valid());
216 return fArgs; 216 return fArgs;
217 } 217 }
218 218
219 bool willColorBlendWithDst(const GrPrimitiveProcessor* primProc) const {
220 SkASSERT(this->valid());
221 return fArgs.fPipelineBuilder->willColorBlendWithDst(primProc);
222 }
223 private: 219 private:
224 GrPipeline::CreateArgs fArgs; 220 GrPipeline::CreateArgs fArgs;
225 }; 221 };
226 222
227 protected: 223 protected:
228 224
229 GrGpu* getGpu() { return fGpu; } 225 GrGpu* getGpu() { return fGpu; }
230 const GrGpu* getGpu() const { return fGpu; } 226 const GrGpu* getGpu() const { return fGpu; }
231 227
232 const GrTraceMarkerSet& getActiveTraceMarkers() { return fActiveTraceMarkers ; } 228 const GrTraceMarkerSet& getActiveTraceMarkers() { return fActiveTraceMarkers ; }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 bool setupClip(const GrPipelineBuilder&, 331 bool setupClip(const GrPipelineBuilder&,
336 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, 332 GrPipelineBuilder::AutoRestoreFragmentProcessorState*,
337 GrPipelineBuilder::AutoRestoreStencil*, 333 GrPipelineBuilder::AutoRestoreStencil*,
338 GrScissorState* scissorState, 334 GrScissorState* scissorState,
339 const SkRect* devBounds) override; 335 const SkRect* devBounds) override;
340 336
341 typedef GrDrawTarget INHERITED; 337 typedef GrDrawTarget INHERITED;
342 }; 338 };
343 339
344 #endif 340 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrCommandBuilder.h ('k') | src/gpu/GrInOrderCommandBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698