OLD | NEW |
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 Loading... |
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 |
OLD | NEW |