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

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

Issue 23926019: Stateful PathRenderer implementation (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: clean up Created 7 years, 3 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
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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 * called to check the cache for a SB that matches an RT's criteria. 833 * called to check the cache for a SB that matches an RT's criteria.
834 */ 834 */
835 void addStencilBuffer(GrStencilBuffer* sb); 835 void addStencilBuffer(GrStencilBuffer* sb);
836 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); 836 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt);
837 837
838 GrPathRenderer* getPathRenderer( 838 GrPathRenderer* getPathRenderer(
839 const SkPath& path, 839 const SkPath& path,
840 const SkStrokeRec& stroke, 840 const SkStrokeRec& stroke,
841 const GrDrawTarget* target, 841 const GrDrawTarget* target,
842 bool allowSW, 842 bool allowSW,
843 GrPathRendererChain::DrawType drawType = GrPathRendererChain ::kColor_DrawType, 843 GrPathRendererChain::DrawType drawType,
844 SkPath::FillType fillType,
844 GrPathRendererChain::StencilSupport* stencilSupport = NULL); 845 GrPathRendererChain::StencilSupport* stencilSupport = NULL);
845 846
846 847
847 #if GR_CACHE_STATS 848 #if GR_CACHE_STATS
848 void printCacheStats() const; 849 void printCacheStats() const;
849 #endif 850 #endif
850 851
851 private: 852 private:
852 // Used to indicate whether a draw should be performed immediately or queued in fDrawBuffer. 853 // Used to indicate whether a draw should be performed immediately or queued in fDrawBuffer.
853 enum BufferedDraw { 854 enum BufferedDraw {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 } 1017 }
1017 1018
1018 GrTexture* texture() { return fTexture; } 1019 GrTexture* texture() { return fTexture; }
1019 1020
1020 private: 1021 private:
1021 GrContext* fContext; 1022 GrContext* fContext;
1022 GrTexture* fTexture; 1023 GrTexture* fTexture;
1023 }; 1024 };
1024 1025
1025 #endif 1026 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698