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

Unified Diff: src/gpu/GrGpu.h

Issue 674543004: OptState owns program descriptor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
Index: src/gpu/GrGpu.h
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index e4669a25c506fa30baee1349a9d86b1822186ce8..847a95d4f9062fff1e08de8f1ea3ccaa8d6883d4 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -19,6 +19,7 @@ class GrPath;
class GrPathRange;
class GrPathRenderer;
class GrPathRendererChain;
+class GrProgramDesc;
class GrStencilBuffer;
class GrVertexBufferAllocPool;
@@ -348,6 +349,11 @@ public:
GrContext::GPUStats* gpuStats() { return &fGPUStats; }
+ virtual void buildKey(const GrOptDrawState* optState,
+ GrGpu::DrawType drawType,
+ const GrDeviceCoordTexture* dstCopy,
+ GrProgramDesc* desc) = 0;
+
protected:
DrawType PrimTypeToDrawType(GrPrimitiveType type) {
switch (type) {
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrOptDrawState.h » ('j') | src/gpu/GrOptDrawState.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698