aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-06-23 14:07:00 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-23 14:07:00 -0700
commit28a838e532250fcca9673aca6c4616193a5a139d (patch)
tree3554ad76c7ce5f69d7ab200b3f2c52ba955827e0 /src/gpu
parentb593a76749c6c7e12bf86aeaa06e1e52708e9bdf (diff)
Move GrPipelineBuilder out of gms & reduce use of GrPipelineBuilder.h
Just another step in reining in the GrPLB GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2086293006 Review-Url: https://codereview.chromium.org/2086293006
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrClipMaskManager.h6
-rw-r--r--src/gpu/GrDrawContextPriv.h5
-rw-r--r--src/gpu/GrDrawTarget.h2
-rw-r--r--src/gpu/GrGpu.h2
-rw-r--r--src/gpu/GrGpuCommandBuffer.cpp1
-rw-r--r--src/gpu/GrPipeline.h2
-rw-r--r--src/gpu/GrResourceCache.cpp2
-rw-r--r--src/gpu/GrSWMaskHelper.h4
-rw-r--r--src/gpu/GrTextureParamsAdjuster.cpp1
-rw-r--r--src/gpu/GrTextureProvider.cpp2
-rw-r--r--src/gpu/GrXferProcessor.cpp1
-rw-r--r--src/gpu/glsl/GrGLSLProgramBuilder.h1
12 files changed, 22 insertions, 7 deletions
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h
index 0c71f7c384..948ae62d77 100644
--- a/src/gpu/GrClipMaskManager.h
+++ b/src/gpu/GrClipMaskManager.h
@@ -7,20 +7,24 @@
#ifndef GrClipMaskManager_DEFINED
#define GrClipMaskManager_DEFINED
-#include "GrPipelineBuilder.h"
#include "GrReducedClip.h"
#include "SkClipStack.h"
#include "SkTypes.h"
class GrAppliedClip;
class GrClipStackClip;
+class GrContext;
class GrDrawContext;
class GrFixedClip;
class GrPathRenderer;
class GrPathRendererChain;
+class GrPipelineBuilder;
class GrResourceProvider;
class GrTexture;
class GrTextureProvider;
+class GrUniqueKey;
+struct GrUserStencilSettings;
+
/**
* The clip mask creator handles the generation of the clip mask. If anti
diff --git a/src/gpu/GrDrawContextPriv.h b/src/gpu/GrDrawContextPriv.h
index 0641e9f2b5..8087bcf588 100644
--- a/src/gpu/GrDrawContextPriv.h
+++ b/src/gpu/GrDrawContextPriv.h
@@ -50,9 +50,10 @@ public:
const SkMatrix& viewMatrix,
const SkPath&);
- void testingOnly_drawBatch(const GrPipelineBuilder& pipelineBuilder,
+ void testingOnly_drawBatch(const GrPaint&,
GrDrawBatch* batch,
- const GrClip* = nullptr);
+ const GrUserStencilSettings* = nullptr,
+ bool snapToCenters = false);
private:
explicit GrDrawContextPriv(GrDrawContext* drawContext) : fDrawContext(drawContext) {}
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index d43a930d1b..64c8a3345c 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -13,7 +13,6 @@
#include "GrPathProcessor.h"
#include "GrPrimitiveProcessor.h"
#include "GrPathRendering.h"
-#include "GrPipelineBuilder.h"
#include "GrXferProcessor.h"
#include "batches/GrDrawBatch.h"
@@ -36,6 +35,7 @@ class GrClip;
class GrCaps;
class GrPath;
class GrDrawPathBatchBase;
+class GrPipelineBuilder;
class GrDrawTarget final : public SkRefCnt {
public:
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index f8528a1550..5164b71f69 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -9,7 +9,6 @@
#define GrGpu_DEFINED
#include "GrGpuCommandBuffer.h"
-#include "GrPipelineBuilder.h"
#include "GrProgramDesc.h"
#include "GrSwizzle.h"
#include "GrAllocator.h"
@@ -22,6 +21,7 @@
class GrBatchTracker;
class GrBuffer;
class GrContext;
+struct GrContextOptions;
class GrGLContext;
class GrMesh;
class GrNonInstancedVertices;
diff --git a/src/gpu/GrGpuCommandBuffer.cpp b/src/gpu/GrGpuCommandBuffer.cpp
index f79cb0f1e6..af0993e033 100644
--- a/src/gpu/GrGpuCommandBuffer.cpp
+++ b/src/gpu/GrGpuCommandBuffer.cpp
@@ -7,6 +7,7 @@
#include "GrGpuCommandBuffer.h"
+#include "GrCaps.h"
#include "GrGpu.h"
#include "GrPrimitiveProcessor.h"
#include "GrRenderTarget.h"
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h
index 3fd70a3830..a17eb098cf 100644
--- a/src/gpu/GrPipeline.h
+++ b/src/gpu/GrPipeline.h
@@ -13,7 +13,9 @@
#include "GrGpu.h"
#include "GrNonAtomicRef.h"
#include "GrPendingProgramElement.h"
+#include "GrPipelineBuilder.h"
#include "GrPrimitiveProcessor.h"
+#include "GrProcOptInfo.h"
#include "GrProgramDesc.h"
#include "GrStencilSettings.h"
#include "GrTypesPriv.h"
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp
index db97e35d7d..71e40f1a53 100644
--- a/src/gpu/GrResourceCache.cpp
+++ b/src/gpu/GrResourceCache.cpp
@@ -7,6 +7,8 @@
#include "GrResourceCache.h"
+
+#include "GrCaps.h"
#include "GrGpuResourceCacheAccess.h"
#include "GrTracing.h"
#include "SkChecksum.h"
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h
index fac4e6287e..107c77ef59 100644
--- a/src/gpu/GrSWMaskHelper.h
+++ b/src/gpu/GrSWMaskHelper.h
@@ -10,7 +10,6 @@
#include "SkAutoPixmapStorage.h"
#include "GrColor.h"
-#include "GrPipelineBuilder.h"
#include "SkBitmap.h"
#include "SkDraw.h"
#include "SkMatrix.h"
@@ -19,10 +18,13 @@
#include "SkTypes.h"
class GrClip;
+class GrPaint;
class GrTextureProvider;
+class GrStyle;
class GrTexture;
class SkPath;
class SkStrokeRec;
+struct GrUserStencilSettings;
/**
* The GrSWMaskHelper helps generate clip masks using the software rendering
diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp
index 1657fb9b95..77743916c5 100644
--- a/src/gpu/GrTextureParamsAdjuster.cpp
+++ b/src/gpu/GrTextureParamsAdjuster.cpp
@@ -20,6 +20,7 @@
#include "SkGr.h"
#include "SkGrPriv.h"
#include "effects/GrBicubicEffect.h"
+#include "effects/GrSimpleTextureEffect.h"
#include "effects/GrTextureDomain.h"
typedef GrTextureProducer::CopyParams CopyParams;
diff --git a/src/gpu/GrTextureProvider.cpp b/src/gpu/GrTextureProvider.cpp
index 69792ede81..00494da5a1 100644
--- a/src/gpu/GrTextureProvider.cpp
+++ b/src/gpu/GrTextureProvider.cpp
@@ -6,6 +6,8 @@
*/
#include "GrTextureProvider.h"
+
+#include "GrCaps.h"
#include "GrTexturePriv.h"
#include "GrResourceCache.h"
#include "GrGpu.h"
diff --git a/src/gpu/GrXferProcessor.cpp b/src/gpu/GrXferProcessor.cpp
index 910b873e86..76e0ba0fc4 100644
--- a/src/gpu/GrXferProcessor.cpp
+++ b/src/gpu/GrXferProcessor.cpp
@@ -7,7 +7,6 @@
#include "GrXferProcessor.h"
#include "GrPipeline.h"
-#include "GrPipelineBuilder.h"
#include "GrProcOptInfo.h"
#include "gl/GrGLCaps.h"
diff --git a/src/gpu/glsl/GrGLSLProgramBuilder.h b/src/gpu/glsl/GrGLSLProgramBuilder.h
index c175fc6adf..27c84372c1 100644
--- a/src/gpu/glsl/GrGLSLProgramBuilder.h
+++ b/src/gpu/glsl/GrGLSLProgramBuilder.h
@@ -10,6 +10,7 @@
#include "GrGeometryProcessor.h"
#include "GrGpu.h"
+#include "glsl/GrGLSLFragmentProcessor.h"
#include "glsl/GrGLSLFragmentShaderBuilder.h"
#include "glsl/GrGLSLGeometryShaderBuilder.h"
#include "glsl/GrGLSLPrimitiveProcessor.h"