skia2/include/gpu
csmartdalton ad2a2becb6 Add GrTFlagsMask<> wrapper for C++11 bitfield enums
Previously, operator& for enum class bitfields was reserved only to
return a bool. e.g:

  if (flags & Flags::kFlag)

This change adds a new template class GrTFlagsMask<> that gets
instantiated by operator~ and allows us to write expressions like:

  flags &= ~Flags::kFlag
  (flags & ~Flags::kFlag1) | Flags::kFlag2

BUG=skia:

Change-Id: I21e5eb9304135e82cdda459e8a833a3489f6beaf
Reviewed-on: https://skia-review.googlesource.com/8563
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2017-02-21 19:34:59 +00:00
..
effects Simplify GrPaint::isConstantBlendedColor to avoid FP analysis and XP virtual calls 2017-02-21 18:29:37 +00:00
gl Add image functions to GrGLInterface 2016-11-15 19:37:35 +00:00
vk Remove SkAutoTUnref and SkAutoTDelete from public includes. 2016-10-27 09:30:08 -07:00
GrBlend.h Create fragment processor for performing input color blend with child processor 2015-09-15 15:33:27 -07:00
GrBuffer.h Add resource provider flag to avoid client-side buffers 2016-07-13 10:16:32 -07:00
GrCaps.h Merge GrGLSLCaps into GrShaderCaps 2016-11-29 19:32:31 +00:00
GrClip.h Relandx2 "Remove antialiasing control from GrPaint." 2016-12-09 20:43:41 +00:00
GrColor.h Revert "Revert "Start of rewrite of GrFragmentProcessor optimizations."" 2017-01-27 16:43:38 +00:00
GrColorSpaceXform.h Add storage and computation of SkColor4f version of gradient stops. 2016-09-15 11:09:45 -07:00
GrConfig.h Repurpose Release_Developer BUILDTYPE and remove SK_DEVELOPER. 2016-04-29 06:41:35 -07:00
GrContext.h GrContext option to prevent GPU based YUV -> RGB 2017-02-14 20:42:06 +00:00
GrContextOptions.h GrContext option to prevent GPU based YUV -> RGB 2017-02-14 20:42:06 +00:00
GrCoordTransform.h Make GrYUVEffect take GrTextureProxies 2017-01-24 12:23:28 +00:00
GrFragmentProcessor.h Clarify when tweak alpha for coverage optimizaton can occur. 2017-02-15 17:27:10 +00:00
GrGpuResource.h Fix undefined GrIORef test method on Chrome win bot 2017-01-11 21:11:12 +00:00
GrGpuResourceRef.h Move resource ref/io manipulation from GrProgramElement to GrProcessor 2017-01-09 21:51:05 +00:00
GrPaint.h Simplify GrPaint::isConstantBlendedColor to avoid FP analysis and XP virtual calls 2017-02-21 18:29:37 +00:00
GrProcessor.h Replaced all calls to fragmentPosition() with sk_FragCoord 2017-02-13 14:49:09 +00:00
GrProcessorUnitTest.h Remove GrProcessorTestData's GrTextures 2017-02-21 16:34:11 +00:00
GrProgramElement.h Add class GrProcessorSet which represents color and coverage FPs and a XPFactory. 2017-01-18 16:48:41 +00:00
GrRenderTarget.h Added GrSurfaceContext and GrTextureContext 2016-11-23 15:52:27 +00:00
GrRenderTargetContext.h Re-enable processor optimization test with some fixes. 2017-02-09 19:25:21 +00:00
GrResourceKey.h Add support for tagging GrUniqueKeys with a debug string 2017-01-06 17:54:03 +00:00
GrSamplerParams.h Rename GrTextureParams to GrSamplerParams 2016-11-17 21:13:18 +00:00
GrShaderCaps.h Add a workaround for platforms with broken geo shader invocations 2017-02-17 17:29:23 +00:00
GrShaderVar.h Merge GrGLSLCaps into GrShaderCaps 2016-11-29 19:32:31 +00:00
GrSurface.h Change GPU read/write pixels API to support color space conversion 2016-12-22 16:44:56 +00:00
GrSurfaceContext.h Rationalize GrContext's Gr*Proxy getter naming 2017-01-30 19:05:36 +00:00
GrTestUtils.h make GR_TEST_UTILS=0 work 2017-02-02 12:49:17 +00:00
GrTexture.h Rename GrTextureParams to GrSamplerParams 2016-11-17 21:13:18 +00:00
GrTextureContext.h Rationalize GrContext's Gr*Proxy getter naming 2017-01-30 19:05:36 +00:00
GrTextureProvider.h Different approach to fixing gpu blurs on platforms that "useDrawInsteadOfClear" 2016-12-09 19:29:38 +00:00
GrTypes.h Add GrTFlagsMask<> wrapper for C++11 bitfield enums 2017-02-21 19:34:59 +00:00
GrTypesPriv.h Check that coverage FPs are compatible with alpha as coverage 2017-02-15 20:50:31 +00:00
GrXferProcessor.h Simplify GrPaint::isConstantBlendedColor to avoid FP analysis and XP virtual calls 2017-02-21 18:29:37 +00:00
SkGr.h Add GrMakeCachedBitmapProxy 2017-02-15 19:15:20 +00:00