| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 | 9 |
| 10 #ifndef GrStencilAttachment_DEFINED | 10 #ifndef GrStencilAttachment_DEFINED |
| 11 #define GrStencilAttachment_DEFINED | 11 #define GrStencilAttachment_DEFINED |
| 12 | 12 |
| 13 #include "GrClip.h" | 13 #include "GrClip.h" |
| 14 #include "GrGpuResource.h" | 14 #include "GrGpuResource.h" |
| 15 | 15 |
| 16 class GrRenderTarget; | 16 class GrRenderTarget; |
| 17 class GrResourceKey; | 17 class GrResourceKey; |
| 18 | 18 |
| 19 class GrStencilAttachment : public GrGpuResource { | 19 class GrStencilAttachment : public GrGpuResource { |
| 20 public: | 20 public: |
| 21 SK_DECLARE_INST_COUNT(GrStencilAttachment); | 21 |
| 22 | 22 |
| 23 virtual ~GrStencilAttachment() { | 23 virtual ~GrStencilAttachment() { |
| 24 // TODO: allow SB to be purged and detach itself from rts | 24 // TODO: allow SB to be purged and detach itself from rts |
| 25 } | 25 } |
| 26 | 26 |
| 27 int width() const { return fWidth; } | 27 int width() const { return fWidth; } |
| 28 int height() const { return fHeight; } | 28 int height() const { return fHeight; } |
| 29 int bits() const { return fBits; } | 29 int bits() const { return fBits; } |
| 30 int numSamples() const { return fSampleCnt; } | 30 int numSamples() const { return fSampleCnt; } |
| 31 | 31 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 int fSampleCnt; | 72 int fSampleCnt; |
| 73 | 73 |
| 74 int32_t fLastClipStackGenID; | 74 int32_t fLastClipStackGenID; |
| 75 SkIRect fLastClipStackRect; | 75 SkIRect fLastClipStackRect; |
| 76 SkIPoint fLastClipSpaceOffset; | 76 SkIPoint fLastClipSpaceOffset; |
| 77 | 77 |
| 78 typedef GrGpuResource INHERITED; | 78 typedef GrGpuResource INHERITED; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 #endif | 81 #endif |
| OLD | NEW |