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; | |
378 virtual void releaseIndexArray() SK_OVERRIDE; | |
379 virtual void geometrySourceWillPush() SK_OVERRIDE; | 375 virtual void geometrySourceWillPush() SK_OVERRIDE; |
380 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK
_OVERRIDE; | 376 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK
_OVERRIDE; |
381 | 377 |
382 | 378 |
383 // called when the 3D context state is unknown. Subclass should emit any | 379 // called when the 3D context state is unknown. Subclass should emit any |
384 // assumed 3D context state and dirty any state cache. | 380 // assumed 3D context state and dirty any state cache. |
385 virtual void onResetContext(uint32_t resetBits) = 0; | 381 virtual void onResetContext(uint32_t resetBits) = 0; |
386 | 382 |
387 // overridden by backend-specific derived class to create objects. | 383 // overridden by backend-specific derived class to create objects. |
388 virtual GrTexture* onCreateTexture(const GrSurfaceDesc& desc, | 384 virtual GrTexture* onCreateTexture(const GrSurfaceDesc& desc, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 // counts number of uses of vertex/index pool in the geometry stack | 482 // counts number of uses of vertex/index pool in the geometry stack |
487 int fVertexP
oolUseCnt; | 483 int fVertexP
oolUseCnt; |
488 int fIndexPo
olUseCnt; | 484 int fIndexPo
olUseCnt; |
489 // these are mutable so they can be created on-demand | 485 // these are mutable so they can be created on-demand |
490 mutable GrIndexBuffer* fQuadInd
exBuffer; | 486 mutable GrIndexBuffer* fQuadInd
exBuffer; |
491 | 487 |
492 typedef GrClipTarget INHERITED; | 488 typedef GrClipTarget INHERITED; |
493 }; | 489 }; |
494 | 490 |
495 #endif | 491 #endif |
OLD | NEW |