Flutter Engine
The Flutter Engine
GrDisableColorXP.h
Go to the documentation of this file.
1/*
2 * Copyright 2014 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
8#ifndef GrDisableColorXP_DEFINED
9#define GrDisableColorXP_DEFINED
10
15
16class GrCaps;
17enum class GrClampType;
18
19// See the comment above GrXPFactory's definition about this warning suppression.
20#if defined(__GNUC__)
21#pragma GCC diagnostic push
22#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
23#endif
24#if defined(__clang__)
25#pragma clang diagnostic push
26#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
27#endif
29public:
30 static const GrDisableColorXPFactory* Get();
31
33
34private:
35 constexpr GrDisableColorXPFactory() {}
36
37 AnalysisProperties analysisProperties(
39 GrClampType) const override {
42 }
43
44 sk_sp<const GrXferProcessor> makeXferProcessor(
46 GrClampType) const override {
47 return MakeXferProcessor();
48 }
49
51
52 using INHERITED = GrXPFactory;
53};
54#if defined(__GNUC__)
55#pragma GCC diagnostic pop
56#endif
57#if defined(__clang__)
58#pragma clang diagnostic pop
59#endif
60
62 static constexpr const GrDisableColorXPFactory gDisableColorXPFactory;
63 return &gDisableColorXPFactory;
64}
65
66#endif
GrProcessorAnalysisCoverage
#define GR_DECLARE_XP_FACTORY_TEST
GrClampType
Definition: GrTypesPriv.h:228
Definition: GrCaps.h:57
static sk_sp< const GrXferProcessor > MakeXferProcessor()
static const GrDisableColorXPFactory * Get()
constexpr GrXPFactory()