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

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

Issue 1126613003: Revert of Move instanced index buffer creation to flush time (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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;
542 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } 543 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; }
543 GrResourceProvider* resourceProvider() { return fResourceProvider; } 544 GrResourceProvider* resourceProvider() { return fResourceProvider; }
544 const GrResourceProvider* resourceProvider() const { return fResourceProvide r; } 545 const GrResourceProvider* resourceProvider() const { return fResourceProvide r; }
545 GrResourceCache* getResourceCache() { return fResourceCache; } 546 GrResourceCache* getResourceCache() { return fResourceCache; }
546 547
547 // Called by tests that draw directly to the context via GrDrawTarget 548 // Called by tests that draw directly to the context via GrDrawTarget
548 void getTestTarget(GrTestTarget*); 549 void getTestTarget(GrTestTarget*);
549 550
550 void addGpuTraceMarker(const GrGpuTraceMarker* marker); 551 void addGpuTraceMarker(const GrGpuTraceMarker* marker);
551 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); 552 void removeGpuTraceMarker(const GrGpuTraceMarker* marker);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 */ 676 */
676 static void TextBlobCacheOverBudgetCB(void* data); 677 static void TextBlobCacheOverBudgetCB(void* data);
677 678
678 // TODO see note on createTextContext 679 // TODO see note on createTextContext
679 friend class SkGpuDevice; 680 friend class SkGpuDevice;
680 681
681 typedef SkRefCnt INHERITED; 682 typedef SkRefCnt INHERITED;
682 }; 683 };
683 684
684 #endif 685 #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