OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |