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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 SkRect fDevBoundsStorage; | 563 SkRect fDevBoundsStorage; |
564 SkRect* fDevBounds; | 564 SkRect* fDevBounds; |
565 | 565 |
566 GrPendingIOResource<const GrVertexBuffer, kRead_GrIOType> fVertexBuffer; | 566 GrPendingIOResource<const GrVertexBuffer, kRead_GrIOType> fVertexBuffer; |
567 GrPendingIOResource<const GrIndexBuffer, kRead_GrIOType> fIndexBuffer; | 567 GrPendingIOResource<const GrIndexBuffer, kRead_GrIOType> fIndexBuffer; |
568 }; | 568 }; |
569 | 569 |
570 /** | 570 /** |
571 * Used to populate the vertex and index buffer on the draw info before onDr
aw is called. | 571 * Used to populate the vertex and index buffer on the draw info before onDr
aw is called. |
572 */ | 572 */ |
573 virtual void setDrawBuffers(DrawInfo*, size_t vertexStride) = 0;; | 573 virtual void setDrawBuffers(DrawInfo*, size_t vertexStride) = 0; |
574 bool programUnitTest(int maxStages); | 574 bool programUnitTest(int maxStages); |
575 | 575 |
576 protected: | 576 protected: |
577 friend class GrTargetCommands; // for PipelineInfo | 577 friend class GrTargetCommands; // for PipelineInfo |
578 | 578 |
579 enum GeometrySrcType { | 579 enum GeometrySrcType { |
580 kNone_GeometrySrcType, //<! src has not been specified | 580 kNone_GeometrySrcType, //<! src has not been specified |
581 kReserved_GeometrySrcType, //<! src was set using reserve*Space | 581 kReserved_GeometrySrcType, //<! src was set using reserve*Space |
582 kBuffer_GeometrySrcType //<! src was set using set*SourceToBuffer | 582 kBuffer_GeometrySrcType //<! src was set using set*SourceToBuffer |
583 }; | 583 }; |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 virtual bool setupClip(GrPipelineBuilder*, | 853 virtual bool setupClip(GrPipelineBuilder*, |
854 GrPipelineBuilder::AutoRestoreFragmentProcessors*, | 854 GrPipelineBuilder::AutoRestoreFragmentProcessors*, |
855 GrPipelineBuilder::AutoRestoreStencil*, | 855 GrPipelineBuilder::AutoRestoreStencil*, |
856 GrScissorState* scissorState, | 856 GrScissorState* scissorState, |
857 const SkRect* devBounds) override; | 857 const SkRect* devBounds) override; |
858 | 858 |
859 typedef GrDrawTarget INHERITED; | 859 typedef GrDrawTarget INHERITED; |
860 }; | 860 }; |
861 | 861 |
862 #endif | 862 #endif |
OLD | NEW |