Chromium Code Reviews| Index: include/gpu/GrTexture.h |
| diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h |
| index a87081820fc9f42bae1186a49f717f8e12c0d70c..ef7f3e87a6da14aa6d81f8db3a08371f4c00f775 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) { |
|
reed1
2013/07/25 21:24:36
Do these need to be public? Seems like an easy way
|
| + fMipMapsDirty = mipMapsDirty; |
| + } |
| + |
| + bool mipMapsAreDirty() const { |
| + return fMipMapsDirty; |
| + } |
| /** |
| * Approximate number of bytes used by the texture |
| @@ -155,6 +163,8 @@ private: |
| // for this texture if the texture is power of two sized. |
| int fShiftFixedX; |
| int fShiftFixedY; |
| + |
| + bool fMipMapsDirty; |
|
bsalomon
2013/07/25 21:36:58
need to init this in the cons to true, right?
|
| virtual void internal_dispose() const SK_OVERRIDE; |