diff options
Diffstat (limited to 'libs/hwui/Texture.h')
-rw-r--r-- | libs/hwui/Texture.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Texture.h b/libs/hwui/Texture.h index 9749f734fd1f..b72742f45654 100644 --- a/libs/hwui/Texture.h +++ b/libs/hwui/Texture.h @@ -34,7 +34,7 @@ class Layer; */ class Texture : public GpuMemoryTracker { public: - Texture(Caches& caches) + explicit Texture(Caches& caches) : GpuMemoryTracker(GpuObjectType::Texture) , mCaches(caches) { } @@ -171,7 +171,7 @@ private: class AutoTexture { public: - AutoTexture(Texture* texture) + explicit AutoTexture(Texture* texture) : texture(texture) {} ~AutoTexture() { if (texture && texture->cleanup) { |