diff options
author | 2018-05-07 12:48:34 -0700 | |
---|---|---|
committer | 2018-05-10 14:54:15 +0000 | |
commit | 328490c6a1625ce51d0e81688e0c85c79c400d86 (patch) | |
tree | af830b6655631d400c7c1fc581e0e625083dd555 /src/gpu/GrDriverBugWorkarounds.cpp | |
parent | ccd4cfc23ebbbecbc6b292359352aad335ad7b73 (diff) |
Add driver bug workarounds to GrCaps
This moves GrDriverBugWorkarounds to include so that it can be included
by GrCaps. This also makes GrContextOptions a nearly empty class in
the case of !SK_SUPPORT_GPU so that non-gpu builds don't need to build
in GrDriverBugWorkarounds.cpp.
Bug: chromium: 829614
Change-Id: Iedf73677fd09e9a487cfe618a696fd4b25c8703d
Reviewed-on: https://skia-review.googlesource.com/126581
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Adrienne Walker <enne@chromium.org>
Diffstat (limited to 'src/gpu/GrDriverBugWorkarounds.cpp')
-rw-r--r-- | src/gpu/GrDriverBugWorkarounds.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/GrDriverBugWorkarounds.cpp b/src/gpu/GrDriverBugWorkarounds.cpp index 5ed9d8d2ef..a1f27a3205 100644 --- a/src/gpu/GrDriverBugWorkarounds.cpp +++ b/src/gpu/GrDriverBugWorkarounds.cpp @@ -29,4 +29,13 @@ GrDriverBugWorkarounds::GrDriverBugWorkarounds( } } +void GrDriverBugWorkarounds::applyOverrides( + const GrDriverBugWorkarounds& workarounds) { +#define GPU_OP(type, name) \ + name |= workarounds.name; + + GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) +#undef GPU_OP +} + GrDriverBugWorkarounds::~GrDriverBugWorkarounds() = default; |