| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 // so that should be okay | 217 // so that should be okay |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, 0); } | 220 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, 0); } |
| 221 | 221 |
| 222 bool programUnitTest(int maxStages); | 222 bool programUnitTest(int maxStages); |
| 223 | 223 |
| 224 protected: | 224 protected: |
| 225 friend class GrCommandBuilder; // for PipelineInfo | 225 friend class GrCommandBuilder; // for PipelineInfo |
| 226 friend class GrInOrderCommandBuilder; // for PipelineInfo | 226 friend class GrInOrderCommandBuilder; // for PipelineInfo |
| 227 friend class GrReorderCommandBuilder; // for PipelineInfo |
| 227 friend class GrTargetCommands; // for PipelineInfo | 228 friend class GrTargetCommands; // for PipelineInfo |
| 228 | 229 |
| 229 GrContext* getContext() { return fContext; } | 230 GrContext* getContext() { return fContext; } |
| 230 const GrContext* getContext() const { return fContext; } | 231 const GrContext* getContext() const { return fContext; } |
| 231 | 232 |
| 232 GrGpu* getGpu() { | 233 GrGpu* getGpu() { |
| 233 SkASSERT(fContext && fContext->getGpu()); | 234 SkASSERT(fContext && fContext->getGpu()); |
| 234 return fContext->getGpu(); | 235 return fContext->getGpu(); |
| 235 } | 236 } |
| 236 const GrGpu* getGpu() const { | 237 const GrGpu* getGpu() const { |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 virtual bool setupClip(GrPipelineBuilder*, | 378 virtual bool setupClip(GrPipelineBuilder*, |
| 378 GrPipelineBuilder::AutoRestoreFragmentProcessors*, | 379 GrPipelineBuilder::AutoRestoreFragmentProcessors*, |
| 379 GrPipelineBuilder::AutoRestoreStencil*, | 380 GrPipelineBuilder::AutoRestoreStencil*, |
| 380 GrScissorState* scissorState, | 381 GrScissorState* scissorState, |
| 381 const SkRect* devBounds) override; | 382 const SkRect* devBounds) override; |
| 382 | 383 |
| 383 typedef GrDrawTarget INHERITED; | 384 typedef GrDrawTarget INHERITED; |
| 384 }; | 385 }; |
| 385 | 386 |
| 386 #endif | 387 #endif |
| OLD | NEW |