| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * 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 |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrRenderTargetPriv_DEFINED | 8 #ifndef GrRenderTargetPriv_DEFINED |
| 9 #define GrRenderTargetPriv_DEFINED | 9 #define GrRenderTargetPriv_DEFINED |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * currently attached GrStencilAttachment will be removed if one was previou
sly attached. This | 28 * currently attached GrStencilAttachment will be removed if one was previou
sly attached. This |
| 29 * function returns false if there were any failure in attaching the GrStenc
ilAttachment. | 29 * function returns false if there were any failure in attaching the GrStenc
ilAttachment. |
| 30 */ | 30 */ |
| 31 bool attachStencilAttachment(GrStencilAttachment* stencil); | 31 bool attachStencilAttachment(GrStencilAttachment* stencil); |
| 32 | 32 |
| 33 int numStencilBits() const; | 33 int numStencilBits() const; |
| 34 | 34 |
| 35 const GrGpu::MultisampleSpecs& getMultisampleSpecs(const GrStencilSettings&
stencil) const; | 35 const GrGpu::MultisampleSpecs& getMultisampleSpecs(const GrStencilSettings&
stencil) const; |
| 36 uint8_t& accessMultisampleSpecsID() { return fRenderTarget->fMultisampleSpec
sID; } | 36 uint8_t& accessMultisampleSpecsID() { return fRenderTarget->fMultisampleSpec
sID; } |
| 37 | 37 |
| 38 GrRenderTarget::SampleConfig sampleConfig() const { return fRenderTarget->fS
ampleConfig; } | 38 typedef GrRenderTarget::Flags Flags; |
| 39 |
| 40 Flags flags() const { return fRenderTarget->fFlags; } |
| 39 | 41 |
| 40 private: | 42 private: |
| 41 explicit GrRenderTargetPriv(GrRenderTarget* renderTarget) : fRenderTarget(re
nderTarget) {} | 43 explicit GrRenderTargetPriv(GrRenderTarget* renderTarget) : fRenderTarget(re
nderTarget) {} |
| 42 GrRenderTargetPriv(const GrRenderTargetPriv&) {} // unimpl | 44 GrRenderTargetPriv(const GrRenderTargetPriv&) {} // unimpl |
| 43 GrRenderTargetPriv& operator=(const GrRenderTargetPriv&); // unimpl | 45 GrRenderTargetPriv& operator=(const GrRenderTargetPriv&); // unimpl |
| 44 | 46 |
| 45 // No taking addresses of this type. | 47 // No taking addresses of this type. |
| 46 const GrRenderTargetPriv* operator&() const; | 48 const GrRenderTargetPriv* operator&() const; |
| 47 GrRenderTargetPriv* operator&(); | 49 GrRenderTargetPriv* operator&(); |
| 48 | 50 |
| 49 GrRenderTarget* fRenderTarget; | 51 GrRenderTarget* fRenderTarget; |
| 50 | 52 |
| 51 friend class GrRenderTarget; // to construct/copy this type. | 53 friend class GrRenderTarget; // to construct/copy this type. |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 inline GrRenderTargetPriv GrRenderTarget::renderTargetPriv() { return GrRenderTa
rgetPriv(this); } | 56 inline GrRenderTargetPriv GrRenderTarget::renderTargetPriv() { return GrRenderTa
rgetPriv(this); } |
| 55 | 57 |
| 56 inline const GrRenderTargetPriv GrRenderTarget::renderTargetPriv () const { | 58 inline const GrRenderTargetPriv GrRenderTarget::renderTargetPriv () const { |
| 57 return GrRenderTargetPriv(const_cast<GrRenderTarget*>(this)); | 59 return GrRenderTargetPriv(const_cast<GrRenderTarget*>(this)); |
| 58 } | 60 } |
| 59 | 61 |
| 60 #endif | 62 #endif |
| OLD | NEW |