Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: src/gpu/GrDrawTarget.h

Issue 956363003: Cleanup in GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 void releasePreviousVertexSource(); 782 void releasePreviousVertexSource();
783 void releasePreviousIndexSource(); 783 void releasePreviousIndexSource();
784 784
785 // Check to see if this set of draw commands has been sent out 785 // Check to see if this set of draw commands has been sent out
786 virtual bool isIssued(uint32_t drawID) { return true; } 786 virtual bool isIssued(uint32_t drawID) { return true; }
787 void getPathStencilSettingsForFilltype(GrPathRendering::FillType, 787 void getPathStencilSettingsForFilltype(GrPathRendering::FillType,
788 const GrStencilBuffer*, 788 const GrStencilBuffer*,
789 GrStencilSettings*); 789 GrStencilSettings*);
790 virtual GrClipMaskManager* clipMaskManager() = 0; 790 virtual GrClipMaskManager* clipMaskManager() = 0;
791 virtual bool setupClip(GrPipelineBuilder*, 791 virtual bool setupClip(GrPipelineBuilder*,
792 GrPipelineBuilder::AutoRestoreEffects* are, 792 GrPipelineBuilder::AutoRestoreFragmentProcessors*,
793 GrPipelineBuilder::AutoRestoreStencil* ars, 793 GrPipelineBuilder::AutoRestoreStencil*,
794 GrScissorState* scissorState, 794 GrScissorState*,
795 const SkRect* devBounds) = 0; 795 const SkRect* devBounds) = 0;
796 796
797 enum { 797 enum {
798 kPreallocGeoSrcStateStackCnt = 4, 798 kPreallocGeoSrcStateStackCnt = 4,
799 }; 799 };
800 SkSTArray<kPreallocGeoSrcStateStackCnt, GeometrySrcState, true> fGeoSrcState Stack; 800 SkSTArray<kPreallocGeoSrcStateStackCnt, GeometrySrcState, true> fGeoSrcState Stack;
801 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar get. 801 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar get.
802 GrContext* fContext; 802 GrContext* fContext;
803 // To keep track that we always have at least as many debug marker adds as r emoves 803 // To keep track that we always have at least as many debug marker adds as r emoves
804 int fGpuTraceMar kerCount; 804 int fGpuTraceMar kerCount;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 fClipMaskManager.purgeResources(); 841 fClipMaskManager.purgeResources();
842 }; 842 };
843 843
844 protected: 844 protected:
845 GrClipMaskManager fClipMaskManager; 845 GrClipMaskManager fClipMaskManager;
846 846
847 private: 847 private:
848 GrClipMaskManager* clipMaskManager() SK_OVERRIDE { return &fClipMaskManager; } 848 GrClipMaskManager* clipMaskManager() SK_OVERRIDE { return &fClipMaskManager; }
849 849
850 virtual bool setupClip(GrPipelineBuilder*, 850 virtual bool setupClip(GrPipelineBuilder*,
851 GrPipelineBuilder::AutoRestoreEffects* are, 851 GrPipelineBuilder::AutoRestoreFragmentProcessors*,
852 GrPipelineBuilder::AutoRestoreStencil* ars, 852 GrPipelineBuilder::AutoRestoreStencil*,
853 GrScissorState* scissorState, 853 GrScissorState* scissorState,
854 const SkRect* devBounds) SK_OVERRIDE; 854 const SkRect* devBounds) SK_OVERRIDE;
855 855
856 typedef GrDrawTarget INHERITED; 856 typedef GrDrawTarget INHERITED;
857 }; 857 };
858 858
859 #endif 859 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698