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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 void finalizeReservedIndices(); | 365 void finalizeReservedIndices(); |
366 | 366 |
367 SkAutoTDelete<GrPathRendering> fPathRendering; | 367 SkAutoTDelete<GrPathRendering> fPathRendering; |
368 | 368 |
369 private: | 369 private: |
370 // GrDrawTarget overrides | 370 // GrDrawTarget overrides |
371 virtual bool onReserveVertexSpace(size_t vertexSize, int vertexCount, void**
vertices) SK_OVERRIDE; | 371 virtual bool onReserveVertexSpace(size_t vertexSize, int vertexCount, void**
vertices) SK_OVERRIDE; |
372 virtual bool onReserveIndexSpace(int indexCount, void** indices) SK_OVERRIDE
; | 372 virtual bool onReserveIndexSpace(int indexCount, void** indices) SK_OVERRIDE
; |
373 virtual void releaseReservedVertexSpace() SK_OVERRIDE; | 373 virtual void releaseReservedVertexSpace() SK_OVERRIDE; |
374 virtual void releaseReservedIndexSpace() SK_OVERRIDE; | 374 virtual void releaseReservedIndexSpace() SK_OVERRIDE; |
375 virtual void onSetVertexSourceToArray(const void* vertexArray, int vertexCou
nt) SK_OVERRIDE; | |
376 virtual void onSetIndexSourceToArray(const void* indexArray, int indexCount)
SK_OVERRIDE; | |
377 virtual void releaseVertexArray() SK_OVERRIDE; | 375 virtual void releaseVertexArray() SK_OVERRIDE; |
378 virtual void releaseIndexArray() SK_OVERRIDE; | 376 virtual void releaseIndexArray() SK_OVERRIDE; |
379 virtual void geometrySourceWillPush() SK_OVERRIDE; | 377 virtual void geometrySourceWillPush() SK_OVERRIDE; |
380 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK
_OVERRIDE; | 378 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK
_OVERRIDE; |
381 | 379 |
382 | 380 |
383 // called when the 3D context state is unknown. Subclass should emit any | 381 // called when the 3D context state is unknown. Subclass should emit any |
384 // assumed 3D context state and dirty any state cache. | 382 // assumed 3D context state and dirty any state cache. |
385 virtual void onResetContext(uint32_t resetBits) = 0; | 383 virtual void onResetContext(uint32_t resetBits) = 0; |
386 | 384 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 // counts number of uses of vertex/index pool in the geometry stack | 484 // counts number of uses of vertex/index pool in the geometry stack |
487 int fVertexP
oolUseCnt; | 485 int fVertexP
oolUseCnt; |
488 int fIndexPo
olUseCnt; | 486 int fIndexPo
olUseCnt; |
489 // these are mutable so they can be created on-demand | 487 // these are mutable so they can be created on-demand |
490 mutable GrIndexBuffer* fQuadInd
exBuffer; | 488 mutable GrIndexBuffer* fQuadInd
exBuffer; |
491 | 489 |
492 typedef GrClipTarget INHERITED; | 490 typedef GrClipTarget INHERITED; |
493 }; | 491 }; |
494 | 492 |
495 #endif | 493 #endif |
OLD | NEW |