| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 SkRect* fDevBounds; | 306 SkRect* fDevBounds; |
| 307 | 307 |
| 308 GrPendingIOResource<const GrVertexBuffer, kRead_GrIOType> fVertexBuffer; | 308 GrPendingIOResource<const GrVertexBuffer, kRead_GrIOType> fVertexBuffer; |
| 309 GrPendingIOResource<const GrIndexBuffer, kRead_GrIOType> fIndexBuffer; | 309 GrPendingIOResource<const GrIndexBuffer, kRead_GrIOType> fIndexBuffer; |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 bool programUnitTest(int maxStages); | 312 bool programUnitTest(int maxStages); |
| 313 | 313 |
| 314 protected: | 314 protected: |
| 315 friend class GrCommandBuilder; // for PipelineInfo | 315 friend class GrCommandBuilder; // for PipelineInfo |
| 316 friend class GrInOrderCommandBuilder; // for PipelineInfo |
| 316 friend class GrTargetCommands; // for PipelineInfo | 317 friend class GrTargetCommands; // for PipelineInfo |
| 317 | 318 |
| 318 GrContext* getContext() { return fContext; } | 319 GrContext* getContext() { return fContext; } |
| 319 const GrContext* getContext() const { return fContext; } | 320 const GrContext* getContext() const { return fContext; } |
| 320 | 321 |
| 321 GrGpu* getGpu() { | 322 GrGpu* getGpu() { |
| 322 SkASSERT(fContext && fContext->getGpu()); | 323 SkASSERT(fContext && fContext->getGpu()); |
| 323 return fContext->getGpu(); | 324 return fContext->getGpu(); |
| 324 } | 325 } |
| 325 const GrGpu* getGpu() const { | 326 const GrGpu* getGpu() const { |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 virtual bool setupClip(GrPipelineBuilder*, | 474 virtual bool setupClip(GrPipelineBuilder*, |
| 474 GrPipelineBuilder::AutoRestoreFragmentProcessors*, | 475 GrPipelineBuilder::AutoRestoreFragmentProcessors*, |
| 475 GrPipelineBuilder::AutoRestoreStencil*, | 476 GrPipelineBuilder::AutoRestoreStencil*, |
| 476 GrScissorState* scissorState, | 477 GrScissorState* scissorState, |
| 477 const SkRect* devBounds) override; | 478 const SkRect* devBounds) override; |
| 478 | 479 |
| 479 typedef GrDrawTarget INHERITED; | 480 typedef GrDrawTarget INHERITED; |
| 480 }; | 481 }; |
| 481 | 482 |
| 482 #endif | 483 #endif |
| OLD | NEW |