OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrGpu_DEFINED | 8 #ifndef GrGpu_DEFINED |
9 #define GrGpu_DEFINED | 9 #define GrGpu_DEFINED |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 GrContext* getContext() { return this->INHERITED::getContext(); } | 55 GrContext* getContext() { return this->INHERITED::getContext(); } |
56 const GrContext* getContext() const { return this->INHERITED::getContext();
} | 56 const GrContext* getContext() const { return this->INHERITED::getContext();
} |
57 | 57 |
58 GrPathRendering* pathRendering() { | 58 GrPathRendering* pathRendering() { |
59 return fPathRendering.get(); | 59 return fPathRendering.get(); |
60 } | 60 } |
61 | 61 |
62 // Called by GrContext when the underlying backend context has been destroye
d. | 62 // Called by GrContext when the underlying backend context has been destroye
d. |
63 // GrGpu should use this to ensure that no backend API calls will be made fr
om | 63 // GrGpu should use this to ensure that no backend API calls will be made fr
om |
64 // here onward, including in its destructor. Subclasses should call | 64 // here onward, including in its destructor. Subclasses should call |
65 // INHERITED::contextAbandonded() if they override this. | 65 // INHERITED::contextAbandoned() if they override this. |
66 virtual void contextAbandonded(); | 66 virtual void contextAbandoned(); |
67 | 67 |
68 /** | 68 /** |
69 * The GrGpu object normally assumes that no outsider is setting state | 69 * The GrGpu object normally assumes that no outsider is setting state |
70 * within the underlying 3D API's context/device/whatever. This call informs | 70 * within the underlying 3D API's context/device/whatever. This call informs |
71 * the GrGpu that the state was modified and it shouldn't make assumptions | 71 * the GrGpu that the state was modified and it shouldn't make assumptions |
72 * about the state. | 72 * about the state. |
73 */ | 73 */ |
74 void markContextDirty(uint32_t state = kAll_GrBackendState) { | 74 void markContextDirty(uint32_t state = kAll_GrBackendState) { |
75 fResetBits |= state; | 75 fResetBits |= state; |
76 } | 76 } |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 // counts number of uses of vertex/index pool in the geometry stack | 518 // counts number of uses of vertex/index pool in the geometry stack |
519 int fVertexP
oolUseCnt; | 519 int fVertexP
oolUseCnt; |
520 int fIndexPo
olUseCnt; | 520 int fIndexPo
olUseCnt; |
521 // these are mutable so they can be created on-demand | 521 // these are mutable so they can be created on-demand |
522 mutable GrIndexBuffer* fQuadInd
exBuffer; | 522 mutable GrIndexBuffer* fQuadInd
exBuffer; |
523 | 523 |
524 typedef GrDrawTarget INHERITED; | 524 typedef GrDrawTarget INHERITED; |
525 }; | 525 }; |
526 | 526 |
527 #endif | 527 #endif |
OLD | NEW |