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

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

Issue 14864020: Don't call purgeCache() from within GrResource memebers. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 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/GrRenderTarget.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 /* 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 #ifndef GrGpu_DEFINED 10 #ifndef GrGpu_DEFINED
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 SkSTArray<kPreallocGeomPoolStateStackCnt, GeometryPoolState, true> fGeomPoo lStateStack; 516 SkSTArray<kPreallocGeomPoolStateStackCnt, GeometryPoolState, true> fGeomPoo lStateStack;
517 ResetTimestamp fResetTi mestamp; 517 ResetTimestamp fResetTi mestamp;
518 GrVertexBufferAllocPool* fVertexP ool; 518 GrVertexBufferAllocPool* fVertexP ool;
519 GrIndexBufferAllocPool* fIndexPo ol; 519 GrIndexBufferAllocPool* fIndexPo ol;
520 // counts number of uses of vertex/index pool in the geometry stack 520 // counts number of uses of vertex/index pool in the geometry stack
521 int fVertexP oolUseCnt; 521 int fVertexP oolUseCnt;
522 int fIndexPo olUseCnt; 522 int fIndexPo olUseCnt;
523 // these are mutable so they can be created on-demand 523 // these are mutable so they can be created on-demand
524 mutable GrIndexBuffer* fQuadInd exBuffer; 524 mutable GrIndexBuffer* fQuadInd exBuffer;
525 bool fContext IsDirty; 525 bool fContext IsDirty;
526 // Used to abandon/release all resources created by this GrGpu. TODO: Move t his
527 // functionality to GrResourceCache.
526 ResourceList fResourc eList; 528 ResourceList fResourc eList;
527 529
528 typedef GrDrawTarget INHERITED; 530 typedef GrDrawTarget INHERITED;
529 }; 531 };
530 532
531 #endif 533 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrRenderTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698