diff options
| author | 2015-12-09 21:29:58 +0000 | |
|---|---|---|
| committer | 2015-12-09 21:29:58 +0000 | |
| commit | a6f28e352d48c285b78f35c8c70dcafb82325dbb (patch) | |
| tree | 10ba1a7f95b3bb87a3c25e979549743a13219c2a /libs/hwui/Texture.h | |
| parent | e37925187889c0bf0d79f6adffbcb953ed02fc0c (diff) | |
| parent | 386aa031793bb037ec43b6cdbd8908c343cc86cb (diff) | |
Merge "Add more shape drawing to new reorderer/renderer"
Diffstat (limited to 'libs/hwui/Texture.h')
| -rw-r--r-- | libs/hwui/Texture.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/hwui/Texture.h b/libs/hwui/Texture.h index 4bcd96dd32f7..1c544b929e64 100644 --- a/libs/hwui/Texture.h +++ b/libs/hwui/Texture.h @@ -120,16 +120,16 @@ private: class AutoTexture { public: - AutoTexture(const Texture* texture): mTexture(texture) { } + AutoTexture(const Texture* texture) + : texture(texture) {} ~AutoTexture() { - if (mTexture && mTexture->cleanup) { - mTexture->deleteTexture(); - delete mTexture; + if (texture && texture->cleanup) { + texture->deleteTexture(); + delete texture; } } -private: - const Texture* mTexture; + const Texture *const texture; }; // class AutoTexture }; // namespace uirenderer |