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

Side by Side Diff: include/gpu/GrContext.h

Issue 23926019: Stateful PathRenderer implementation (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: add assert & patch for missing AutoPathClear Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | include/gpu/GrPathRendererChain.h » ('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 GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 * called to check the cache for a SB that matches an RT's criteria. 847 * called to check the cache for a SB that matches an RT's criteria.
848 */ 848 */
849 void addStencilBuffer(GrStencilBuffer* sb); 849 void addStencilBuffer(GrStencilBuffer* sb);
850 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); 850 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt);
851 851
852 GrPathRenderer* getPathRenderer( 852 GrPathRenderer* getPathRenderer(
853 const SkPath& path, 853 const SkPath& path,
854 const SkStrokeRec& stroke, 854 const SkStrokeRec& stroke,
855 const GrDrawTarget* target, 855 const GrDrawTarget* target,
856 bool allowSW, 856 bool allowSW,
857 GrPathRendererChain::DrawType drawType = GrPathRendererChain ::kColor_DrawType, 857 GrPathRendererChain::DrawType drawType,
858 SkPath::FillType fillType,
858 GrPathRendererChain::StencilSupport* stencilSupport = NULL); 859 GrPathRendererChain::StencilSupport* stencilSupport = NULL);
859 860
860 861
861 #if GR_CACHE_STATS 862 #if GR_CACHE_STATS
862 void printCacheStats() const; 863 void printCacheStats() const;
863 #endif 864 #endif
864 865
865 private: 866 private:
866 // Used to indicate whether a draw should be performed immediately or queued in fDrawBuffer. 867 // Used to indicate whether a draw should be performed immediately or queued in fDrawBuffer.
867 enum BufferedDraw { 868 enum BufferedDraw {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 } 1045 }
1045 1046
1046 GrTexture* texture() { return fTexture; } 1047 GrTexture* texture() { return fTexture; }
1047 1048
1048 private: 1049 private:
1049 GrContext* fContext; 1050 GrContext* fContext;
1050 GrTexture* fTexture; 1051 GrTexture* fTexture;
1051 }; 1052 };
1052 1053
1053 #endif 1054 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrPathRendererChain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698