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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 int startIndex, | 781 int startIndex, |
782 int vertexCount, | 782 int vertexCount, |
783 int indexCount) const; | 783 int indexCount) const; |
784 // called when setting a new vert/idx source to unref prev vb/ib | 784 // called when setting a new vert/idx source to unref prev vb/ib |
785 void releasePreviousVertexSource(); | 785 void releasePreviousVertexSource(); |
786 void releasePreviousIndexSource(); | 786 void releasePreviousIndexSource(); |
787 | 787 |
788 // Check to see if this set of draw commands has been sent out | 788 // Check to see if this set of draw commands has been sent out |
789 virtual bool isIssued(uint32_t drawID) { return true; } | 789 virtual bool isIssued(uint32_t drawID) { return true; } |
790 void getPathStencilSettingsForFilltype(GrPathRendering::FillType, | 790 void getPathStencilSettingsForFilltype(GrPathRendering::FillType, |
791 const GrStencilBuffer*, | 791 const GrStencilAttachment*, |
792 GrStencilSettings*); | 792 GrStencilSettings*); |
793 virtual GrClipMaskManager* clipMaskManager() = 0; | 793 virtual GrClipMaskManager* clipMaskManager() = 0; |
794 virtual bool setupClip(GrPipelineBuilder*, | 794 virtual bool setupClip(GrPipelineBuilder*, |
795 GrPipelineBuilder::AutoRestoreFragmentProcessors*, | 795 GrPipelineBuilder::AutoRestoreFragmentProcessors*, |
796 GrPipelineBuilder::AutoRestoreStencil*, | 796 GrPipelineBuilder::AutoRestoreStencil*, |
797 GrScissorState*, | 797 GrScissorState*, |
798 const SkRect* devBounds) = 0; | 798 const SkRect* devBounds) = 0; |
799 | 799 |
800 enum { | 800 enum { |
801 kPreallocGeoSrcStateStackCnt = 4, | 801 kPreallocGeoSrcStateStackCnt = 4, |
(...skipping 51 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 |