| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  366         int                     fVerticesPerInstance; |  366         int                     fVerticesPerInstance; | 
|  367         int                     fIndicesPerInstance; |  367         int                     fIndicesPerInstance; | 
|  368  |  368  | 
|  369         GrPendingIOResource<const GrVertexBuffer, kRead_GrIOType> fVertexBuffer; |  369         GrPendingIOResource<const GrVertexBuffer, kRead_GrIOType> fVertexBuffer; | 
|  370         GrPendingIOResource<const GrIndexBuffer, kRead_GrIOType>  fIndexBuffer; |  370         GrPendingIOResource<const GrIndexBuffer, kRead_GrIOType>  fIndexBuffer; | 
|  371     }; |  371     }; | 
|  372  |  372  | 
|  373     bool programUnitTest(int maxStages); |  373     bool programUnitTest(int maxStages); | 
|  374  |  374  | 
|  375 protected: |  375 protected: | 
 |  376     friend class GrCommandBuilder; // for PipelineInfo | 
|  376     friend class GrTargetCommands; // for PipelineInfo |  377     friend class GrTargetCommands; // for PipelineInfo | 
|  377  |  378  | 
|  378     GrContext* getContext() { return fContext; } |  379     GrContext* getContext() { return fContext; } | 
|  379     const GrContext* getContext() const { return fContext; } |  380     const GrContext* getContext() const { return fContext; } | 
|  380  |  381  | 
|  381     GrGpu* getGpu() { |  382     GrGpu* getGpu() { | 
|  382         SkASSERT(fContext && fContext->getGpu()); |  383         SkASSERT(fContext && fContext->getGpu()); | 
|  383         return fContext->getGpu(); |  384         return fContext->getGpu(); | 
|  384     } |  385     } | 
|  385     const GrGpu* getGpu() const { |  386     const GrGpu* getGpu() const { | 
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  541     virtual bool setupClip(GrPipelineBuilder*, |  542     virtual bool setupClip(GrPipelineBuilder*, | 
|  542                            GrPipelineBuilder::AutoRestoreFragmentProcessors*, |  543                            GrPipelineBuilder::AutoRestoreFragmentProcessors*, | 
|  543                            GrPipelineBuilder::AutoRestoreStencil*, |  544                            GrPipelineBuilder::AutoRestoreStencil*, | 
|  544                            GrScissorState* scissorState, |  545                            GrScissorState* scissorState, | 
|  545                            const SkRect* devBounds) override; |  546                            const SkRect* devBounds) override; | 
|  546  |  547  | 
|  547     typedef GrDrawTarget INHERITED; |  548     typedef GrDrawTarget INHERITED; | 
|  548 }; |  549 }; | 
|  549  |  550  | 
|  550 #endif |  551 #endif | 
| OLD | NEW |