Rename GrContext::contextPriv to priv
Mechanical. This makes the priv() accessor the same for all the context types.
Change-Id: I40850eb05a33b8d7cc3eabdd42226d24b2ba58aa
Reviewed-on: https://skia-review.googlesource.com/c/189164
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/bench/SKPBench.cpp b/bench/SKPBench.cpp
index 01ded9c..3a3bbaf 100644
--- a/bench/SKPBench.cpp
+++ b/bench/SKPBench.cpp
@@ -154,13 +154,13 @@
static void draw_pic_for_stats(SkCanvas* canvas, GrContext* context, const SkPicture* picture,
SkTArray<SkString>* keys, SkTArray<double>* values,
const char* tag) {
- context->contextPriv().resetGpuStats();
+ context->priv().resetGpuStats();
canvas->drawPicture(picture);
canvas->flush();
int offset = keys->count();
- context->contextPriv().dumpGpuStatsKeyValuePairs(keys, values);
- context->contextPriv().dumpCacheStatsKeyValuePairs(keys, values);
+ context->priv().dumpGpuStatsKeyValuePairs(keys, values);
+ context->priv().dumpCacheStatsKeyValuePairs(keys, values);
// append tag, but only to new tags
for (int i = offset; i < keys->count(); i++, offset++) {
@@ -179,7 +179,7 @@
context->flush();
context->freeGpuResources();
context->resetContext();
- context->contextPriv().getGpu()->resetShaderCacheForTesting();
+ context->priv().getGpu()->resetShaderCacheForTesting();
draw_pic_for_stats(canvas, context, fPic.get(), keys, values, "first_frame");
// draw second frame