| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 4 * | 3 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | 8 |
| 10 #ifndef GrStencilAttachment_DEFINED | 9 #ifndef GrStencilAttachment_DEFINED |
| 11 #define GrStencilAttachment_DEFINED | 10 #define GrStencilAttachment_DEFINED |
| 12 | 11 |
| 13 #include "GrClip.h" | 12 #include "GrClip.h" |
| 14 #include "GrGpuResource.h" | 13 #include "GrGpuResource.h" |
| 15 | 14 |
| 16 class GrRenderTarget; | 15 class GrRenderTarget; |
| 17 class GrResourceKey; | 16 class GrResourceKey; |
| 18 | 17 |
| 19 class GrStencilAttachment : public GrGpuResource { | 18 class GrStencilAttachment : public GrGpuResource { |
| 20 public: | 19 public: |
| 21 | 20 |
| 22 | 21 |
| 23 virtual ~GrStencilAttachment() { | 22 virtual ~GrStencilAttachment() { |
| 24 // TODO: allow SB to be purged and detach itself from rts | 23 // TODO: allow SB to be purged and detach itself from rts |
| 25 } | 24 } |
| 26 | 25 |
| 27 int width() const { return fWidth; } | 26 int width() const { return fWidth; } |
| 28 int height() const { return fHeight; } | 27 int height() const { return fHeight; } |
| 29 int bits() const { return fBits; } | 28 int bits() const { return fBits; } |
| 30 int numSamples() const { return fSampleCnt; } | 29 int numSamples() const { return fSampleCnt; } |
| 31 | 30 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 int fSampleCnt; | 71 int fSampleCnt; |
| 73 | 72 |
| 74 int32_t fLastClipStackGenID; | 73 int32_t fLastClipStackGenID; |
| 75 SkIRect fLastClipStackRect; | 74 SkIRect fLastClipStackRect; |
| 76 SkIPoint fLastClipSpaceOffset; | 75 SkIPoint fLastClipSpaceOffset; |
| 77 | 76 |
| 78 typedef GrGpuResource INHERITED; | 77 typedef GrGpuResource INHERITED; |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 #endif | 80 #endif |
| OLD | NEW |