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

Unified Diff: src/gpu/GrPipelineBuilder.h

Issue 1717393002: Add "sample locations" feature to GrProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_getmultisamp
Patch Set: assert Created 4 years, 10 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/GrPipelineBuilder.h
diff --git a/src/gpu/GrPipelineBuilder.h b/src/gpu/GrPipelineBuilder.h
index f5fe9f80dc38196d583183845a0990684b88eced..178dd6593edec32f6c5992e2ae19f7b82d3d421e 100644
--- a/src/gpu/GrPipelineBuilder.h
+++ b/src/gpu/GrPipelineBuilder.h
@@ -291,12 +291,18 @@ public:
*/
kSnapVerticesToPixelCenters_Flag = 0x02,
- kLast_Flag = kSnapVerticesToPixelCenters_Flag,
+ /**
+ * Adds a built-in fragment shader array that contains the pipeline's sample locations.
+ */
+ kSampleLocations_Flag = 0x04,
bsalomon 2016/02/22 20:28:26 Where/how will this get set?
Chris Dalton 2016/02/22 21:19:11 I envision it being set by the code that sets up t
+
+ kLast_Flag = kSampleLocations_Flag,
};
bool isHWAntialias() const { return SkToBool(fFlags & kHWAntialias_Flag); }
bool snapVerticesToPixelCenters() const {
return SkToBool(fFlags & kSnapVerticesToPixelCenters_Flag); }
+ bool hasSampleLocations() const { return SkToBool(fFlags & kSampleLocations_Flag); }
/**
* Enable render state settings.

Powered by Google App Engine
This is Rietveld 408576698