aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrTypesPriv.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-06-13 08:11:36 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-13 13:12:17 +0000
commitc4f0a8245ccf0d14f6a6dffc73ff56b563012b69 (patch)
treea595e5acd034b2d708122dea9a4d046610537c02 /include/gpu/GrTypesPriv.h
parente8f28818a2c0fe967f9fc4cec4bb9dc78af78212 (diff)
Move Flags from GrRenderTarget to GrTypesPriv.h & rename
The motivation for this is to prevent GrRenderTarget.h appearing in GrRenderTargetProxy.h Change-Id: I4ef126972c0780cbacb35fa2aa6290777c66eddf Reviewed-on: https://skia-review.googlesource.com/19521 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/gpu/GrTypesPriv.h')
-rw-r--r--include/gpu/GrTypesPriv.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/gpu/GrTypesPriv.h b/include/gpu/GrTypesPriv.h
index 42da3d4481..edd45d1447 100644
--- a/include/gpu/GrTypesPriv.h
+++ b/include/gpu/GrTypesPriv.h
@@ -576,6 +576,26 @@ enum GrAccessPattern {
kLast_GrAccessPattern = kStream_GrAccessPattern
};
+// Flags shared between GrRenderTarget and GrRenderTargetProxy
+enum class GrRenderTargetFlags {
+ kNone = 0,
+
+ // For internal resources:
+ // this is enabled whenever MSAA is enabled and GrCaps reports mixed samples are supported
+ // For wrapped resources:
+ // this is disabled for FBO0
+ // but, otherwise, is enabled whenever MSAA is enabled and GrCaps reports mixed samples
+ // are supported
+ kMixedSampled = 1 << 0,
+
+ // For internal resources:
+ // this is enabled whenever GrCaps reports window rect support
+ // For wrapped resources1
+ // this is disabled for FBO0
+ // but, otherwise, is enabled whenever GrCaps reports window rect support
+ kWindowRectsSupport = 1 << 1
+};
+GR_MAKE_BITFIELD_CLASS_OPS(GrRenderTargetFlags)
#ifdef SK_DEBUG
// Takes a pointer to a GrCaps, and will suppress prints if required