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

Unified Diff: src/gpu/GrGpu.h

Issue 777673003: move program descriptor generation to flush (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more cleanup Created 6 years 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 | « no previous file | src/gpu/GrGpu.cpp » ('j') | src/gpu/GrInOrderDrawBuffer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpu.h
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index d0bff30262c59a220af6dcea2ab25f87d89c1e52..884efbe8cbe14e9bf51c852a326b5eaa15028693 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -315,7 +315,6 @@ public:
GrContext::GPUStats* gpuStats() { return &fGPUStats; }
virtual void buildProgramDesc(const GrOptDrawState&,
- const GrProgramDesc::DescInfo&,
GrGpu::DrawType,
GrProgramDesc*) = 0;
@@ -357,14 +356,17 @@ public:
const SkIRect& srcRect,
const SkIPoint& dstPoint) = 0;
- virtual void draw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&);
+ virtual void draw(const GrOptDrawState&, const GrProgramDesc&, const GrDrawTarget::DrawInfo&);
virtual void stencilPath(const GrOptDrawState&,
+ const GrProgramDesc&,
const GrPath*,
const GrStencilSettings&);
virtual void drawPath(const GrOptDrawState&,
+ const GrProgramDesc&,
const GrPath*,
const GrStencilSettings&);
virtual void drawPaths(const GrOptDrawState&,
+ const GrProgramDesc&,
const GrPathRange*,
const void* indices,
GrDrawTarget::PathIndexType,
@@ -469,7 +471,7 @@ private:
// deltas from previous state at draw time. This function does the
// backend-specific flush of the state.
// returns false if current state is unsupported.
- virtual bool flushGraphicsState(const GrOptDrawState&, DrawType) = 0;
+ virtual bool flushGraphicsState(const GrOptDrawState&, const GrProgramDesc&, DrawType) = 0;
// clears target's entire stencil buffer to 0
virtual void clearStencil(GrRenderTarget* target) = 0;
« no previous file with comments | « no previous file | src/gpu/GrGpu.cpp » ('j') | src/gpu/GrInOrderDrawBuffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698