From 0c4b7b1f2f1dd37204d401a6993119e5431942a6 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Tue, 6 Mar 2018 08:20:37 -0500 Subject: Move internal calls from GrContext to GrContextPriv A mechanical bulk move just to get these out of the public API. TBR=bsalomon@google.com Change-Id: I813efbd54a09dd448275697c0e50947753a5cfd3 Reviewed-on: https://skia-review.googlesource.com/112262 Commit-Queue: Robert Phillips Reviewed-by: Greg Daniel --- dm/DMSrcSink.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'dm') diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp index 149138d832..b84563701c 100644 --- a/dm/DMSrcSink.cpp +++ b/dm/DMSrcSink.cpp @@ -71,6 +71,10 @@ #include "SkXMLWriter.h" #endif +#if SK_SUPPORT_GPU +#include "GrContextPriv.h" +#endif + DEFINE_bool(multiPage, false, "For document-type backends, render the source" " into multiple pages"); DEFINE_bool(RAW_threading, true, "Allow RAW decodes to run on multiple threads?"); @@ -1655,8 +1659,10 @@ Error GPUSink::onDraw(const Src& src, SkBitmap* dst, SkWStream*, SkString* log, } canvas->flush(); if (FLAGS_gpuStats) { - canvas->getGrContext()->dumpCacheStats(log); - canvas->getGrContext()->dumpGpuStats(log); +#if SK_SUPPORT_GPU + canvas->getGrContext()->contextPriv().dumpCacheStats(log); + canvas->getGrContext()->contextPriv().dumpGpuStats(log); +#endif } if (info.colorType() == kRGB_565_SkColorType || info.colorType() == kARGB_4444_SkColorType) { // We don't currently support readbacks into these formats on the GPU backend. Convert to -- cgit v1.2.3