aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ops/GrSmallPathRenderer.h
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-09-22 19:07:22 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-22 19:07:29 +0000
commit4935a019125a15f8c56bfd2a6b3d3629a64cad33 (patch)
treeea4a2b96ff0e012928b029a3082467294b81daf8 /src/gpu/ops/GrSmallPathRenderer.h
parentfddc21547de58bbbce6a0b50c1c65c0392dd09e4 (diff)
Revert "Shrink GrDrawOpAtlases when no longer needed"
This reverts commit 7cf59526c9b1ab3682e875d449200e51f3b6ff32. Reason for revert: Red red bots... it's tearing me apart... Original change's description: > Shrink GrDrawOpAtlases when no longer needed > > Bug: skia:3550 > Change-Id: I7b09aa2b0fd22ed99694f32f9f395392ef80e238 > Reviewed-on: https://skia-review.googlesource.com/49901 > Commit-Queue: Jim Van Verth <jvanverth@google.com> > Reviewed-by: Robert Phillips <robertphillips@google.com> > Reviewed-by: Brian Salomon <bsalomon@google.com> TBR=jvanverth@google.com,bsalomon@google.com,robertphillips@google.com Change-Id: I8331ec79b0796e1f75d7cc53b9753f886aea7fcd No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia:3550 Reviewed-on: https://skia-review.googlesource.com/50220 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'src/gpu/ops/GrSmallPathRenderer.h')
-rw-r--r--src/gpu/ops/GrSmallPathRenderer.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gpu/ops/GrSmallPathRenderer.h b/src/gpu/ops/GrSmallPathRenderer.h
index 9c3104b136..b958baa843 100644
--- a/src/gpu/ops/GrSmallPathRenderer.h
+++ b/src/gpu/ops/GrSmallPathRenderer.h
@@ -9,7 +9,6 @@
#define GrSmallPathRenderer_DEFINED
#include "GrDrawOpAtlas.h"
-#include "GrOnFlushResourceProvider.h"
#include "GrPathRenderer.h"
#include "GrRect.h"
#include "GrShape.h"
@@ -19,7 +18,7 @@
class GrContext;
-class GrSmallPathRenderer : public GrPathRenderer, public GrOnFlushCallbackObject {
+class GrSmallPathRenderer : public GrPathRenderer {
public:
GrSmallPathRenderer();
~GrSmallPathRenderer() override;
@@ -27,15 +26,6 @@ public:
class SmallPathOp;
struct PathTestStruct;
- void preFlush(GrOnFlushResourceProvider*, const uint32_t*, int,
- SkTArray<sk_sp<GrRenderTargetContext>>*) override {}
-
- void postFlush(GrDrawOpUploadToken startTokenForNextFlush) override {
- if (fAtlas) {
- fAtlas->compact(startTokenForNextFlush);
- }
- }
-
private:
StencilSupport onGetStencilSupport(const GrShape&) const override {
return GrPathRenderer::kNoSupport_StencilSupport;