fTextureCreates = 0;
fTextureUploads = 0;
fStencilAttachmentCreates = 0;
+ fNumDraws = 0;
}
int renderTargetBinds() const { return fRenderTargetBinds; }
int textureUploads() const { return fTextureUploads; }
void incTextureUploads() { fTextureUploads++; }
void incStencilAttachmentCreates() { fStencilAttachmentCreates++; }
+ void incNumDraws() { fNumDraws++; }
void dump(SkString*);
private:
int fTextureCreates;
int fTextureUploads;
int fStencilAttachmentCreates;
+ int fNumDraws;
#else
void dump(SkString*) {};
void incRenderTargetBinds() {}
void incTextureCreates() {}
void incTextureUploads() {}
void incStencilAttachmentCreates() {}
+ void incNumDraws() {}
#endif
};
out->appendf("Textures Created: %d\n", fTextureCreates);
out->appendf("Texture Uploads: %d\n", fTextureUploads);
out->appendf("Stencil Buffer Creates: %d\n", fStencilAttachmentCreates);
+ out->appendf("Number of draws: %d\n", fNumDraws);
}
#endif