From 6dea83f244cfdea52901eef6b31cee60b07a8ea0 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Thu, 3 Dec 2015 12:58:06 -0800 Subject: Add option to draw wireframe batch bounds Committed: https://skia.googlesource.com/skia/+/26489ef21ff5df33b8cb5943fddfd4604e203960 Review URL: https://codereview.chromium.org/1494473005 --- dm/DMGpuSupport.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'dm/DMGpuSupport.h') diff --git a/dm/DMGpuSupport.h b/dm/DMGpuSupport.h index 9f20dd51da..bccf112f72 100644 --- a/dm/DMGpuSupport.h +++ b/dm/DMGpuSupport.h @@ -13,6 +13,10 @@ #include "SkSurface.h" +// This should be safe to include even in no-gpu builds. Include by relative path so it +// can be found in non-gpu builds. +#include "../include/gpu/GrContextOptions.h" + #if SK_SUPPORT_GPU // Ganesh is available. Yippee! @@ -55,11 +59,6 @@ public: void dumpGpuStats(SkString*) const {} }; -struct GrContextOptions { - bool fImmediateMode; - bool fClipBatchToBounds; -}; - class GrContextFactory { public: GrContextFactory() {}; -- cgit v1.2.3