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