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

Side by Side Diff: src/gpu/GrInOrderDrawBuffer.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: Disable font cache stats 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 */ 58 */
59 void reset(); 59 void reset();
60 60
61 /** 61 /**
62 * This plays the queued up draws to its GrGpu target. It also resets this o bject (i.e. flushing 62 * This plays the queued up draws to its GrGpu target. It also resets this o bject (i.e. flushing
63 * is destructive). This buffer must not have an active reserved vertex or i ndex source. Any 63 * is destructive). This buffer must not have an active reserved vertex or i ndex source. Any
64 * reserved geometry on the target will be finalized because it's geometry s ource will be pushed 64 * reserved geometry on the target will be finalized because it's geometry s ource will be pushed
65 * before flushing and popped afterwards. 65 * before flushing and popped afterwards.
66 */ 66 */
67 void flush(); 67 void flush();
68 68
69 // overrides from GrDrawTarget 69 // overrides from GrDrawTarget
70 virtual bool geometryHints(int* vertexCount, 70 virtual bool geometryHints(int* vertexCount,
71 int* indexCount) const SK_OVERRIDE; 71 int* indexCount) const SK_OVERRIDE;
72 virtual void clear(const SkIRect* rect, 72 virtual void clear(const SkIRect* rect,
73 GrColor color, 73 GrColor color,
74 GrRenderTarget* renderTarget = NULL) SK_OVERRIDE; 74 GrRenderTarget* renderTarget = NULL) SK_OVERRIDE;
75 75
76 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* des c) SK_OVERRIDE; 76 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* des c) SK_OVERRIDE;
77 77
78 78
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 size_t fUsedPoolIndexBytes; 221 size_t fUsedPoolIndexBytes;
222 }; 222 };
223 SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> fGeoPoolStateStack; 223 SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> fGeoPoolStateStack;
224 224
225 bool fFlushing; 225 bool fFlushing;
226 226
227 typedef GrDrawTarget INHERITED; 227 typedef GrDrawTarget INHERITED;
228 }; 228 };
229 229
230 #endif 230 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698