Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1734)

Unified Diff: src/gpu/GrDrawingManager.h

Issue 2240623002: Move GrAtlasTextContext to GrDrawingManager, so we only have one. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawingManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawingManager.h
diff --git a/src/gpu/GrDrawingManager.h b/src/gpu/GrDrawingManager.h
index 99fc087fd127bf1b4a45077203cfe50f8e3b61d4..20a346a412ffeec4a731c441f9c7ab4f7958da04 100644
--- a/src/gpu/GrDrawingManager.h
+++ b/src/gpu/GrDrawingManager.h
@@ -8,6 +8,7 @@
#ifndef GrDrawingManager_DEFINED
#define GrDrawingManager_DEFINED
robertphillips 2016/08/11 18:33:08 Can we predeclare this rather than include it?
Brian Osman 2016/08/11 18:37:14 No, because of the smart pointer destructor. :(
+#include "text/GrAtlasTextContext.h"
#include "GrDrawTarget.h"
#include "GrBatchFlushState.h"
#include "GrPathRendererChain.h"
@@ -41,6 +42,8 @@ public:
GrContext* getContext() { return fContext; }
+ GrAtlasTextContext* getAtlasTextContext();
+
GrPathRenderer* getPathRenderer(const GrPathRenderer::CanDrawPathArgs& args,
bool allowSW,
GrPathRendererChain::DrawType drawType,
@@ -55,6 +58,7 @@ private:
, fOptionsForDrawTargets(optionsForDrawTargets)
, fSingleOwner(singleOwner)
, fAbandoned(false)
+ , fAtlasTextContext(nullptr)
, fPathRendererChain(nullptr)
, fSoftwarePathRenderer(nullptr)
, fFlushState(context->getGpu(), context->resourceProvider())
@@ -80,6 +84,8 @@ private:
bool fAbandoned;
SkTDArray<GrDrawTarget*> fDrawTargets;
robertphillips 2016/08/11 18:33:08 might as well sk_sp this
bsalomon 2016/08/11 18:34:44 It's not ref-counted.
+ SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext;
bsalomon 2016/08/11 18:33:45 preserve alignment (or unalign everyone)?
+
GrPathRendererChain* fPathRendererChain;
GrSoftwarePathRenderer* fSoftwarePathRenderer;
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawingManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698