From c4f0a8245ccf0d14f6a6dffc73ff56b563012b69 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Tue, 13 Jun 2017 08:11:36 -0400 Subject: 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 Commit-Queue: Robert Phillips --- include/gpu/GrTypesPriv.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include/gpu/GrTypesPriv.h') 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 -- cgit v1.2.3