OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrContext_DEFINED | 8 #ifndef GrContext_DEFINED |
9 #define GrContext_DEFINED | 9 #define GrContext_DEFINED |
10 | 10 |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 } | 532 } |
533 | 533 |
534 /////////////////////////////////////////////////////////////////////////// | 534 /////////////////////////////////////////////////////////////////////////// |
535 // Functions intended for internal use only. | 535 // Functions intended for internal use only. |
536 GrGpu* getGpu() { return fGpu; } | 536 GrGpu* getGpu() { return fGpu; } |
537 const GrGpu* getGpu() const { return fGpu; } | 537 const GrGpu* getGpu() const { return fGpu; } |
538 GrBatchFontCache* getBatchFontCache() { return fBatchFontCache; } | 538 GrBatchFontCache* getBatchFontCache() { return fBatchFontCache; } |
539 GrLayerCache* getLayerCache() { return fLayerCache.get(); } | 539 GrLayerCache* getLayerCache() { return fLayerCache.get(); } |
540 GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } | 540 GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } |
541 GrDrawTarget* getTextTarget(); | 541 GrDrawTarget* getTextTarget(); |
542 const GrIndexBuffer* getQuadIndexBuffer() const; | |
543 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } | 542 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } |
544 GrResourceProvider* resourceProvider() { return fResourceProvider; } | 543 GrResourceProvider* resourceProvider() { return fResourceProvider; } |
545 const GrResourceProvider* resourceProvider() const { return fResourceProvide
r; } | 544 const GrResourceProvider* resourceProvider() const { return fResourceProvide
r; } |
546 GrResourceCache* getResourceCache() { return fResourceCache; } | 545 GrResourceCache* getResourceCache() { return fResourceCache; } |
547 | 546 |
548 // Called by tests that draw directly to the context via GrDrawTarget | 547 // Called by tests that draw directly to the context via GrDrawTarget |
549 void getTestTarget(GrTestTarget*); | 548 void getTestTarget(GrTestTarget*); |
550 | 549 |
551 void addGpuTraceMarker(const GrGpuTraceMarker* marker); | 550 void addGpuTraceMarker(const GrGpuTraceMarker* marker); |
552 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); | 551 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 */ | 675 */ |
677 static void TextBlobCacheOverBudgetCB(void* data); | 676 static void TextBlobCacheOverBudgetCB(void* data); |
678 | 677 |
679 // TODO see note on createTextContext | 678 // TODO see note on createTextContext |
680 friend class SkGpuDevice; | 679 friend class SkGpuDevice; |
681 | 680 |
682 typedef SkRefCnt INHERITED; | 681 typedef SkRefCnt INHERITED; |
683 }; | 682 }; |
684 | 683 |
685 #endif | 684 #endif |
OLD | NEW |