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

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

Issue 1495543003: Wire up resource cache stats dumping in nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix windows warnings Created 5 years 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 | « bench/SKPBench.cpp ('k') | src/gpu/GrResourceCache.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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 GrResourceCache* getResourceCache() { return fResourceCache; } 328 GrResourceCache* getResourceCache() { return fResourceCache; }
329 329
330 // Called by tests that draw directly to the context via GrDrawTarget 330 // Called by tests that draw directly to the context via GrDrawTarget
331 void getTestTarget(GrTestTarget*, GrRenderTarget* rt); 331 void getTestTarget(GrTestTarget*, GrRenderTarget* rt);
332 332
333 /** Reset GPU stats */ 333 /** Reset GPU stats */
334 void resetGpuStats() const ; 334 void resetGpuStats() const ;
335 335
336 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ 336 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */
337 void dumpCacheStats(SkString*) const; 337 void dumpCacheStats(SkString*) const;
338 void dumpCacheStatsKeyValuePairs(SkTArray<SkString>* keys, SkTArray<double>* values) const;
338 void printCacheStats() const; 339 void printCacheStats() const;
339 340
340 /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ 341 /** Prints GPU stats to the string if GR_GPU_STATS == 1. */
341 void dumpGpuStats(SkString*) const; 342 void dumpGpuStats(SkString*) const;
342 void dumpGpuStatsKeyValuePairs(SkTArray<SkString>* names, SkTArray<double>* values) const; 343 void dumpGpuStatsKeyValuePairs(SkTArray<SkString>* keys, SkTArray<double>* v alues) const;
343 void printGpuStats() const; 344 void printGpuStats() const;
344 345
345 /** Specify the TextBlob cache limit. If the current cache exceeds this limi t it will purge. 346 /** Specify the TextBlob cache limit. If the current cache exceeds this limi t it will purge.
346 this is for testing only */ 347 this is for testing only */
347 void setTextBlobCacheLimit_ForTesting(size_t bytes); 348 void setTextBlobCacheLimit_ForTesting(size_t bytes);
348 349
349 /** Specify the sizes of the GrAtlasTextContext atlases. The configs pointe r below should be 350 /** Specify the sizes of the GrAtlasTextContext atlases. The configs pointe r below should be
350 to an array of 3 entries */ 351 to an array of 3 entries */
351 void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs); 352 void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs);
352 353
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 /** 439 /**
439 * A callback similar to the above for use by the TextBlobCache 440 * A callback similar to the above for use by the TextBlobCache
440 * TODO move textblob draw calls below context so we can use the call above. 441 * TODO move textblob draw calls below context so we can use the call above.
441 */ 442 */
442 static void TextBlobCacheOverBudgetCB(void* data); 443 static void TextBlobCacheOverBudgetCB(void* data);
443 444
444 typedef SkRefCnt INHERITED; 445 typedef SkRefCnt INHERITED;
445 }; 446 };
446 447
447 #endif 448 #endif
OLDNEW
« no previous file with comments | « bench/SKPBench.cpp ('k') | src/gpu/GrResourceCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698