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

Side by Side Diff: src/gpu/GrGpu.h

Issue 1489033004: Began logging more gpu stats from nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: no gpu support 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 | « include/gpu/GrContext.h ('k') | 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 2011 Google Inc. 2 * Copyright 2011 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 GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 void incRenderTargetBinds() { fRenderTargetBinds++; } 335 void incRenderTargetBinds() { fRenderTargetBinds++; }
336 int shaderCompilations() const { return fShaderCompilations; } 336 int shaderCompilations() const { return fShaderCompilations; }
337 void incShaderCompilations() { fShaderCompilations++; } 337 void incShaderCompilations() { fShaderCompilations++; }
338 int textureCreates() const { return fTextureCreates; } 338 int textureCreates() const { return fTextureCreates; }
339 void incTextureCreates() { fTextureCreates++; } 339 void incTextureCreates() { fTextureCreates++; }
340 int textureUploads() const { return fTextureUploads; } 340 int textureUploads() const { return fTextureUploads; }
341 void incTextureUploads() { fTextureUploads++; } 341 void incTextureUploads() { fTextureUploads++; }
342 void incStencilAttachmentCreates() { fStencilAttachmentCreates++; } 342 void incStencilAttachmentCreates() { fStencilAttachmentCreates++; }
343 void incNumDraws() { fNumDraws++; } 343 void incNumDraws() { fNumDraws++; }
344 void dump(SkString*); 344 void dump(SkString*);
345 void dumpKeyValuePairs(SkTArray<SkString>* keys, SkTArray<double>* value s);
345 346
346 private: 347 private:
347 int fRenderTargetBinds; 348 int fRenderTargetBinds;
348 int fShaderCompilations; 349 int fShaderCompilations;
349 int fTextureCreates; 350 int fTextureCreates;
350 int fTextureUploads; 351 int fTextureUploads;
351 int fStencilAttachmentCreates; 352 int fStencilAttachmentCreates;
352 int fNumDraws; 353 int fNumDraws;
353 #else 354 #else
354 void dump(SkString*) {}; 355 void dump(SkString*) {}
356 void dumpKeyValuePairs(SkTArray<SkString>*, SkTArray<double>*) {}
355 void incRenderTargetBinds() {} 357 void incRenderTargetBinds() {}
356 void incShaderCompilations() {} 358 void incShaderCompilations() {}
357 void incTextureCreates() {} 359 void incTextureCreates() {}
358 void incTextureUploads() {} 360 void incTextureUploads() {}
359 void incStencilAttachmentCreates() {} 361 void incStencilAttachmentCreates() {}
360 void incNumDraws() {} 362 void incNumDraws() {}
361 #endif 363 #endif
362 }; 364 };
363 365
364 Stats* stats() { return &fStats; } 366 Stats* stats() { return &fStats; }
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 ResetTimestamp fResetTi mestamp; 503 ResetTimestamp fResetTi mestamp;
502 uint32_t fResetBi ts; 504 uint32_t fResetBi ts;
503 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 505 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
504 GrContext* fContext ; 506 GrContext* fContext ;
505 507
506 friend class GrPathRendering; 508 friend class GrPathRendering;
507 typedef SkRefCnt INHERITED; 509 typedef SkRefCnt INHERITED;
508 }; 510 };
509 511
510 #endif 512 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698