summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chih-hung Hsieh <chh@google.com> 2016-05-05 21:33:27 +0000
committer android-build-merger <android-build-merger@google.com> 2016-05-05 21:33:27 +0000
commitee1cd12a327f926bba54bb9f6d77098aa63ae6c1 (patch)
treec1eb1195162d1eb671816ff44e4dd6d48118ccfe
parent067b2ca8f53e6331f05fc23820bf5113b88a97b2 (diff)
parent4a912c41d39a1e55fbfc5610ed480b4023b34fd0 (diff)
Merge "Fix google-explicit-constructor warnings." am: caff47a0c4
am: 4a912c41d3 * commit '4a912c41d39a1e55fbfc5610ed480b4023b34fd0': Fix google-explicit-constructor warnings. Change-Id: If184ceba0bd601eadf3389d98a43dbfcf67f68ab
-rw-r--r--libs/gui/tests/SurfaceTextureClient_test.cpp2
-rw-r--r--libs/gui/tests/SurfaceTextureGL_test.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/gui/tests/SurfaceTextureClient_test.cpp b/libs/gui/tests/SurfaceTextureClient_test.cpp
index a1578f671e..b10d4ebde7 100644
--- a/libs/gui/tests/SurfaceTextureClient_test.cpp
+++ b/libs/gui/tests/SurfaceTextureClient_test.cpp
@@ -535,7 +535,7 @@ TEST_F(SurfaceTextureClientTest, DISABLED_SurfaceTextureSyncModeWaitRetire) {
return false;
}
public:
- MyThread(const sp<GLConsumer>& mST)
+ explicit MyThread(const sp<GLConsumer>& mST)
: mST(mST), mBufferRetired(false) {
ctx = eglGetCurrentContext();
sur = eglGetCurrentSurface(EGL_DRAW);
diff --git a/libs/gui/tests/SurfaceTextureGL_test.cpp b/libs/gui/tests/SurfaceTextureGL_test.cpp
index dddcf922f6..81d5a57eb0 100644
--- a/libs/gui/tests/SurfaceTextureGL_test.cpp
+++ b/libs/gui/tests/SurfaceTextureGL_test.cpp
@@ -437,7 +437,7 @@ TEST_F(SurfaceTextureGLTest, DisconnectStressTest) {
class ProducerThread : public Thread {
public:
- ProducerThread(const sp<ANativeWindow>& anw):
+ explicit ProducerThread(const sp<ANativeWindow>& anw):
mANW(anw) {
}
@@ -620,7 +620,7 @@ TEST_F(SurfaceTextureGLTest, CroppedScalingMode) {
TEST_F(SurfaceTextureGLTest, AbandonUnblocksDequeueBuffer) {
class ProducerThread : public Thread {
public:
- ProducerThread(const sp<ANativeWindow>& anw):
+ explicit ProducerThread(const sp<ANativeWindow>& anw):
mANW(anw),
mDequeueError(NO_ERROR) {
}