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

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

Issue 1264283002: Add abliity to set textblob cache budget to GrContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak Created 5 years, 4 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 | « no previous file | src/gpu/GrTest.cpp » ('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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 GrPathRendererChain::StencilSupport* stencilSupport = NULL); 346 GrPathRendererChain::StencilSupport* stencilSupport = NULL);
347 347
348 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ 348 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */
349 void dumpCacheStats(SkString*) const; 349 void dumpCacheStats(SkString*) const;
350 void printCacheStats() const; 350 void printCacheStats() const;
351 351
352 /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ 352 /** Prints GPU stats to the string if GR_GPU_STATS == 1. */
353 void dumpGpuStats(SkString*) const; 353 void dumpGpuStats(SkString*) const;
354 void printGpuStats() const; 354 void printGpuStats() const;
355 355
356 /** Specify the TextBlob cache limit. If the current cache exceeds this limi t it will purge.
357 this is for testing only */
358 void setTextBlobCacheLimit_ForTesting(size_t bytes);
359
356 private: 360 private:
357 GrGpu* fGpu; 361 GrGpu* fGpu;
358 const GrCaps* fCaps; 362 const GrCaps* fCaps;
359 GrResourceCache* fResourceCache; 363 GrResourceCache* fResourceCache;
360 // this union exists because the inheritance of GrTextureProvider->GrResourc eProvider 364 // this union exists because the inheritance of GrTextureProvider->GrResourc eProvider
361 // is in a private header. 365 // is in a private header.
362 union { 366 union {
363 GrResourceProvider* fResourceProvider; 367 GrResourceProvider* fResourceProvider;
364 GrTextureProvider* fTextureProvider; 368 GrTextureProvider* fTextureProvider;
365 }; 369 };
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 /** 462 /**
459 * A callback similar to the above for use by the TextBlobCache 463 * A callback similar to the above for use by the TextBlobCache
460 * TODO move textblob draw calls below context so we can use the call above. 464 * TODO move textblob draw calls below context so we can use the call above.
461 */ 465 */
462 static void TextBlobCacheOverBudgetCB(void* data); 466 static void TextBlobCacheOverBudgetCB(void* data);
463 467
464 typedef SkRefCnt INHERITED; 468 typedef SkRefCnt INHERITED;
465 }; 469 };
466 470
467 #endif 471 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698