From 0e1853c89615d14d0d03c87c7e0c604e5285cc54 Mon Sep 17 00:00:00 2001 From: egdaniel Date: Thu, 17 Mar 2016 11:35:45 -0700 Subject: Update how we send draws to gpu backend to reduce state setting. The main change here is that we pull primitive type off of the vertices, we set the gpu state on gpu once per pipeline/prim proc draw batch, and we create the ProgramDescriptor only for the Cache/ProgramBuilder. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1806983002 Review URL: https://codereview.chromium.org/1806983002 --- src/gpu/GrTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gpu/GrTest.cpp') diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp index f25455a67b..38758c6e57 100644 --- a/src/gpu/GrTest.cpp +++ b/src/gpu/GrTest.cpp @@ -306,9 +306,6 @@ public: GrPixelConfig srcConfig, DrawPreference*, WritePixelTempDrawInfo*) override { return false; } - void buildProgramDesc(GrProgramDesc*, const GrPrimitiveProcessor&, - const GrPipeline&) const override {} - void discard(GrRenderTarget*) override {} bool onCopySurface(GrSurface* dst, @@ -367,7 +364,10 @@ private: void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideClip) override {} - void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} + void onDraw(const GrPipeline&, + const GrPrimitiveProcessor&, + const GrMesh*, + int meshCount) override {} bool onReadPixels(GrSurface* surface, int left, int top, int width, int height, -- cgit v1.2.3