diff options
author | Brian Salomon <bsalomon@google.com> | 2018-07-10 10:07:31 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-10 14:56:05 +0000 |
commit | 653f42f72a1ccb4a5d86cdf128993cbb5c9a310b (patch) | |
tree | 8f3f322166c9b8718f1467007b09a230d98bb4ec /src/gpu/GrDrawingManager.h | |
parent | c098f2bf2fa37ca3eaddc3827d1dcad81f26181c (diff) |
Deinline some GrPathRenderer method and one GrDrawingMananger method.
Removes circular dependencies from coming change.
Some IWYU fallout from removing #includes from GrPathRenderer.h and
GrDrawingManager.h
Bug: skia:
Change-Id: Ice377538e6d64b6a74a59e6140e1de9a58ab99bf
Reviewed-on: https://skia-review.googlesource.com/140181
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrDrawingManager.h')
-rw-r--r-- | src/gpu/GrDrawingManager.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gpu/GrDrawingManager.h b/src/gpu/GrDrawingManager.h index 5978e487b1..91d1629348 100644 --- a/src/gpu/GrDrawingManager.h +++ b/src/gpu/GrDrawingManager.h @@ -10,7 +10,6 @@ #include "GrPathRenderer.h" #include "GrPathRendererChain.h" -#include "GrRenderTargetOpList.h" #include "GrResourceCache.h" #include "SkTArray.h" #include "text/GrTextContext.h" @@ -21,9 +20,11 @@ class GrOnFlushCallbackObject; class GrRenderTargetContext; class GrRenderTargetProxy; class GrSingleOWner; +class GrRenderTargetOpList; class GrSoftwarePathRenderer; class GrTextureContext; class GrTextureOpList; +class SkDeferredDisplayList; // The GrDrawingManager allocates a new GrRenderTargetContext for each GrRenderTarget // but all of them still land in the same GrOpList! @@ -65,12 +66,7 @@ public: // supported and turned on. GrCoverageCountingPathRenderer* getCoverageCountingPathRenderer(); - void flushIfNecessary() { - GrResourceCache* resourceCache = fContext->contextPriv().getResourceCache(); - if (resourceCache && resourceCache->requestsFlush()) { - this->internalFlush(nullptr, GrResourceCache::kCacheRequested, 0, nullptr); - } - } + void flushIfNecessary(); static bool ProgramUnitTest(GrContext* context, int maxStages, int maxLevels); |