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

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

Issue 23120004: Change Atlas recycling to track current flush count and recycle if Atlas not used in current flush. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 | src/gpu/GrAtlas.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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); 833 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt);
834 834
835 GrPathRenderer* getPathRenderer( 835 GrPathRenderer* getPathRenderer(
836 const SkPath& path, 836 const SkPath& path,
837 const SkStrokeRec& stroke, 837 const SkStrokeRec& stroke,
838 const GrDrawTarget* target, 838 const GrDrawTarget* target,
839 bool allowSW, 839 bool allowSW,
840 GrPathRendererChain::DrawType drawType = GrPathRendererChain ::kColor_DrawType, 840 GrPathRendererChain::DrawType drawType = GrPathRendererChain ::kColor_DrawType,
841 GrPathRendererChain::StencilSupport* stencilSupport = NULL); 841 GrPathRendererChain::StencilSupport* stencilSupport = NULL);
842 842
843
843 #if GR_CACHE_STATS 844 #if GR_CACHE_STATS
844 void printCacheStats() const; 845 void printCacheStats() const;
845 #endif 846 #endif
846 847
847 private: 848 private:
848 // Used to indicate whether a draw should be performed immediately or queued in fDrawBuffer. 849 // Used to indicate whether a draw should be performed immediately or queued in fDrawBuffer.
849 enum BufferedDraw { 850 enum BufferedDraw {
850 kYes_BufferedDraw, 851 kYes_BufferedDraw,
851 kNo_BufferedDraw, 852 kNo_BufferedDraw,
852 }; 853 };
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 } 1013 }
1013 1014
1014 GrTexture* texture() { return fTexture; } 1015 GrTexture* texture() { return fTexture; }
1015 1016
1016 private: 1017 private:
1017 GrContext* fContext; 1018 GrContext* fContext;
1018 GrTexture* fTexture; 1019 GrTexture* fTexture;
1019 }; 1020 };
1020 1021
1021 #endif 1022 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrAtlas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698