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

Unified Diff: src/gpu/GrPipeline.h

Issue 1467553002: New API for computing optimization invariants. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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/GrPathProcessor.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPipeline.h
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h
index 8781058247fe438300ac2f5cb919c389aea31c1b..2d909be482c73587454221a387e4eca9558b6d34 100644
--- a/src/gpu/GrPipeline.h
+++ b/src/gpu/GrPipeline.h
@@ -24,6 +24,16 @@ class GrBatch;
class GrDeviceCoordTexture;
class GrPipelineBuilder;
+struct GrBatchToXPOverrides {
+ bool fUsePLSDstRead;
+};
+
+struct GrPipelineOptimizations {
+ GrProcOptInfo fColorPOI;
+ GrProcOptInfo fCoveragePOI;
+ GrBatchToXPOverrides fOverrides;
+};
+
/**
* Class that holds an optimized version of a GrPipelineBuilder. It is meant to be an immutable
* class, and contains all data needed to set the state for a gpu draw.
@@ -36,14 +46,13 @@ public:
struct CreateArgs {
const GrPipelineBuilder* fPipelineBuilder;
const GrCaps* fCaps;
- GrProcOptInfo fColorPOI;
- GrProcOptInfo fCoveragePOI;
+ GrPipelineOptimizations fOpts;
const GrScissorState* fScissor;
GrXferProcessor::DstTexture fDstTexture;
};
/** Creates a pipeline into a pre-allocated buffer */
- static GrPipeline* CreateAt(void* memory, const CreateArgs&, GrPipelineOptimizations*);
+ static GrPipeline* CreateAt(void* memory, const CreateArgs&, GrXPOverridesForBatch*);
/// @}
« no previous file with comments | « src/gpu/GrPathProcessor.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698