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

Unified Diff: src/gpu/vk/GrVkProgramBuilder.h

Issue 1806983002: Update how we send draws to gpu backend to reduce state setting. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nit Created 4 years, 9 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/vk/GrVkGpu.cpp ('k') | src/gpu/vk/GrVkProgramBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkProgramBuilder.h
diff --git a/src/gpu/vk/GrVkProgramBuilder.h b/src/gpu/vk/GrVkProgramBuilder.h
index 83a7adfb534812bf5a7dca15195e79c38fe1a876..65fe54667c4908e2d30490a386d172e37a6ad4f0 100644
--- a/src/gpu/vk/GrVkProgramBuilder.h
+++ b/src/gpu/vk/GrVkProgramBuilder.h
@@ -20,6 +20,7 @@
class GrVkGpu;
class GrVkRenderPass;
class GrVkProgram;
+class GrVkProgramDesc;
class GrVkProgramBuilder : public GrGLSLProgramBuilder {
public:
@@ -31,8 +32,10 @@ public:
* @return true if generation was successful.
*/
static GrVkProgram* CreateProgram(GrVkGpu*,
- const DrawArgs&,
+ const GrPipeline&,
+ const GrPrimitiveProcessor&,
GrPrimitiveType,
+ const GrVkProgramDesc&,
const GrVkRenderPass& renderPass);
const GrCaps* caps() const override;
@@ -43,11 +46,12 @@ public:
void finalizeFragmentOutputColor(GrGLSLShaderVar& outputColor) override;
private:
- GrVkProgramBuilder(GrVkGpu*, const DrawArgs&);
+ GrVkProgramBuilder(GrVkGpu*,
+ const GrPipeline&,
+ const GrPrimitiveProcessor&,
+ const GrVkProgramDesc&);
- GrVkProgram* finalize(const DrawArgs& args,
- GrPrimitiveType primitiveType,
- const GrVkRenderPass& renderPass);
+ GrVkProgram* finalize(GrPrimitiveType primitiveType, const GrVkRenderPass& renderPass);
static bool CreateVkShaderModule(const GrVkGpu* gpu,
VkShaderStageFlagBits stage,
@@ -63,8 +67,6 @@ private:
GrVkVaryingHandler fVaryingHandler;
GrVkUniformHandler fUniformHandler;
- SkTArray<UniformHandle> fSamplerUniforms;
-
typedef GrGLSLProgramBuilder INHERITED;
};
« no previous file with comments | « src/gpu/vk/GrVkGpu.cpp ('k') | src/gpu/vk/GrVkProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698