summaryrefslogtreecommitdiff
path: root/libs/hwui/pipeline/skia/VectorDrawableAtlas.h
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-12-20 13:48:57 -0800
committerChih-Hung Hsieh <chh@google.com>2018-12-20 15:36:19 -0800
commitf9336412b397f9cc07d63b47defd76aa09d114e1 (patch)
tree3b67eea2bf85f727c2c58f2ed7d1b3d0617d7b23 /libs/hwui/pipeline/skia/VectorDrawableAtlas.h
parentbcf293c674307a90238671edcf5c82b17e3bca62 (diff)
Fix/suppress pipeline google-explicit-constructor warnings
* Add explicit to conversion constructors/operators Bug: 28341362 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor Change-Id: Iadeb6cf7ba65d646ec131e567b3ef90c3a699885
Diffstat (limited to 'libs/hwui/pipeline/skia/VectorDrawableAtlas.h')
-rw-r--r--libs/hwui/pipeline/skia/VectorDrawableAtlas.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/pipeline/skia/VectorDrawableAtlas.h b/libs/hwui/pipeline/skia/VectorDrawableAtlas.h
index 74e48cea2a87..5e892aa7e92c 100644
--- a/libs/hwui/pipeline/skia/VectorDrawableAtlas.h
+++ b/libs/hwui/pipeline/skia/VectorDrawableAtlas.h
@@ -62,8 +62,8 @@ class VectorDrawableAtlas : public virtual RefBase {
public:
enum class StorageMode { allowSharedSurface, disallowSharedSurface };
- VectorDrawableAtlas(size_t surfaceArea,
- StorageMode storageMode = StorageMode::allowSharedSurface);
+ explicit VectorDrawableAtlas(size_t surfaceArea,
+ StorageMode storageMode = StorageMode::allowSharedSurface);
/**
* "prepareForDraw" may allocate a new surface if needed. It may schedule to repack the