OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #ifndef GrDrawTargetCaps_DEFINED | 8 #ifndef GrDrawTargetCaps_DEFINED |
9 #define GrDrawTargetCaps_DEFINED | 9 #define GrDrawTargetCaps_DEFINED |
10 | 10 |
11 #include "GrTypes.h" | 11 #include "GrTypes.h" |
12 #include "SkRefCnt.h" | 12 #include "SkRefCnt.h" |
13 #include "SkString.h" | 13 #include "SkString.h" |
14 | 14 |
15 /** | 15 /** |
16 * Represents the draw target capabilities. | 16 * Represents the draw target capabilities. |
17 */ | 17 */ |
18 class GrDrawTargetCaps : public SkRefCnt { | 18 class GrDrawTargetCaps : public SkRefCnt { |
19 public: | 19 public: |
20 SK_DECLARE_INST_COUNT(Caps) | 20 SK_DECLARE_INST_COUNT(GrDrawTargetCaps) |
21 | 21 |
22 GrDrawTargetCaps() { this->reset(); } | 22 GrDrawTargetCaps() { this->reset(); } |
23 GrDrawTargetCaps(const GrDrawTargetCaps& other) : INHERITED() { *this = othe
r; } | 23 GrDrawTargetCaps(const GrDrawTargetCaps& other) : INHERITED() { *this = othe
r; } |
24 GrDrawTargetCaps& operator= (const GrDrawTargetCaps&); | 24 GrDrawTargetCaps& operator= (const GrDrawTargetCaps&); |
25 | 25 |
26 virtual void reset(); | 26 virtual void reset(); |
27 virtual SkString dump() const; | 27 virtual SkString dump() const; |
28 | 28 |
29 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } | 29 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } |
30 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor
t of MIP Maps (e.g. | 30 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor
t of MIP Maps (e.g. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 int fMaxSampleCount; | 98 int fMaxSampleCount; |
99 | 99 |
100 // The first entry for each config is without msaa and the second is with. | 100 // The first entry for each config is without msaa and the second is with. |
101 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; | 101 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; |
102 bool fConfigTextureSupport[kGrPixelConfigCnt]; | 102 bool fConfigTextureSupport[kGrPixelConfigCnt]; |
103 | 103 |
104 typedef SkRefCnt INHERITED; | 104 typedef SkRefCnt INHERITED; |
105 }; | 105 }; |
106 | 106 |
107 #endif | 107 #endif |
OLD | NEW |