Index: include/gpu/GrTexture.h |
diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h |
index a87081820fc9f42bae1186a49f717f8e12c0d70c..15cdcb49e69f3a68593b3ab7640cd631947929f6 100644 |
--- a/include/gpu/GrTexture.h |
+++ b/include/gpu/GrTexture.h |
@@ -43,6 +43,14 @@ public: |
bool isSetFlag(GrTextureFlags flags) const { |
return 0 != (fDesc.fFlags & flags); |
} |
+ |
+ void dirtyMipMaps(bool mipMapsDirty) { |
+ fMipMapsDirty = mipMapsDirty; |
+ } |
+ |
+ bool mipMapsAreDirty() const { |
+ return fMipMapsDirty; |
+ } |
/** |
* Approximate number of bytes used by the texture |
@@ -136,7 +144,7 @@ protected: |
GrTexture(GrGpu* gpu, bool isWrapped, const GrTextureDesc& desc) |
: INHERITED(gpu, isWrapped, desc) |
- , fRenderTarget(NULL) { |
+ , fRenderTarget(NULL), fMipMapsDirty(true) { |
bsalomon
2013/07/25 22:01:08
style nit
: INHERITED(gpu, isWrapped, desc)
, fRe
|
// only make sense if alloc size is pow2 |
fShiftFixedX = 31 - SkCLZ(fDesc.fWidth); |
@@ -155,6 +163,8 @@ private: |
// for this texture if the texture is power of two sized. |
int fShiftFixedX; |
int fShiftFixedY; |
+ |
+ bool fMipMapsDirty; |
virtual void internal_dispose() const SK_OVERRIDE; |