Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: include/gpu/GrContext.h

Issue 1116943004: Move instanced index buffer creation to flush time (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix missing assignment of keys to index buffers Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/core/SkOnce.h ('k') | include/gpu/GrResourceKey.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/core/SkOnce.h ('k') | include/gpu/GrResourceKey.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698