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 | 8 |
9 #include "SkRefCnt.h" | 9 #include "SkRefCnt.h" |
10 | 10 |
11 #ifndef GrDrawTargetCaps_DEFINED | 11 #ifndef GrDrawTargetCaps_DEFINED |
12 #define GrDrawTargetCaps_DEFINED | 12 #define GrDrawTargetCaps_DEFINED |
13 | 13 |
14 /** | 14 /** |
15 * Represents the draw target capabilities. | 15 * Represents the draw target capabilities. |
16 */ | 16 */ |
17 class GrDrawTargetCaps : public SkRefCnt { | 17 class GrDrawTargetCaps : public SkRefCnt { |
18 public: | 18 public: |
19 SK_DECLARE_INST_COUNT(Caps) | 19 SK_DECLARE_INST_COUNT(Caps) |
20 | 20 |
21 GrDrawTargetCaps() { this->reset(); } | 21 GrDrawTargetCaps() { this->reset(); } |
22 GrDrawTargetCaps(const GrDrawTargetCaps& other) { *this = other; } | 22 GrDrawTargetCaps(const GrDrawTargetCaps& other) : INHERITED() { *this = othe
r; } |
23 GrDrawTargetCaps& operator= (const GrDrawTargetCaps&); | 23 GrDrawTargetCaps& operator= (const GrDrawTargetCaps&); |
24 | 24 |
25 virtual void reset(); | 25 virtual void reset(); |
26 virtual void print() const; | 26 virtual void print() const; |
27 | 27 |
28 bool eightBitPaletteSupport() const { return f8BitPaletteSupport; } | 28 bool eightBitPaletteSupport() const { return f8BitPaletteSupport; } |
29 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } | 29 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } |
30 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } | 30 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } |
31 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } | 31 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
32 bool hwAALineSupport() const { return fHWAALineSupport; } | 32 bool hwAALineSupport() const { return fHWAALineSupport; } |
(...skipping 25 matching lines...) Expand all Loading... |
58 bool fReuseScratchTextures : 1; | 58 bool fReuseScratchTextures : 1; |
59 | 59 |
60 int fMaxRenderTargetSize; | 60 int fMaxRenderTargetSize; |
61 int fMaxTextureSize; | 61 int fMaxTextureSize; |
62 int fMaxSampleCount; | 62 int fMaxSampleCount; |
63 | 63 |
64 typedef SkRefCnt INHERITED; | 64 typedef SkRefCnt INHERITED; |
65 }; | 65 }; |
66 | 66 |
67 #endif | 67 #endif |
OLD | NEW |