Flutter Engine
The Flutter Engine
GrDriverBugWorkarounds.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
9
11
13
15 const std::vector<int>& enabled_driver_bug_workarounds) {
16 for (auto id : enabled_driver_bug_workarounds) {
17 switch (id) {
18#define GPU_OP(type, name) \
19 case GrDriverBugWorkaroundType::type: \
20 name = true; \
21 break;
22
24#undef GPU_OP
25 default:
26 SK_ABORT("Not implemented");
27 break;
28 }
29 }
30}
31
33 const GrDriverBugWorkarounds& workarounds) {
34#define GPU_OP(type, name) \
35 name |= workarounds.name;
36
38#undef GPU_OP
39}
40
#define GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
#define GPU_OP(type, name)
#define SK_ABORT(message,...)
Definition: SkAssert.h:70
void applyOverrides(const GrDriverBugWorkarounds &workarounds)