summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh2016-04-25 17:28:36 -0500
committerChih-Hung Hsieh2016-04-25 17:28:36 -0500
commit75935ef67ea6c766e260111f871f445d229bd795 (patch)
tree8e389ffc76d69afa7bb38d668153b7ce81d7959b /libpixelflinger
parentd61bfb9a79e3e7a85738341a8cbc67abf4e56e8b (diff)
downloadplatform-system-core-75935ef67ea6c766e260111f871f445d229bd795.tar.gz
platform-system-core-75935ef67ea6c766e260111f871f445d229bd795.tar.xz
platform-system-core-75935ef67ea6c766e260111f871f445d229bd795.zip
Fix google-explicit-constructor warnings.
Bug: 28341362 Change-Id: I0ce541f79feef5c08eac64edc686be3edf9c2aa4
Diffstat (limited to 'libpixelflinger')
-rw-r--r--libpixelflinger/scanline.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/libpixelflinger/scanline.cpp b/libpixelflinger/scanline.cpp
index a718b02c6..f48e1d03a 100644
--- a/libpixelflinger/scanline.cpp
+++ b/libpixelflinger/scanline.cpp
@@ -965,7 +965,7 @@ discard:
965 * Use only for one-to-one texture mapping. 965 * Use only for one-to-one texture mapping.
966 */ 966 */
967struct horz_iterator32 { 967struct horz_iterator32 {
968 horz_iterator32(context_t* c) { 968 explicit horz_iterator32(context_t* c) {
969 const int x = c->iterators.xl; 969 const int x = c->iterators.xl;
970 const int y = c->iterators.y; 970 const int y = c->iterators.y;
971 texture_t& tx = c->state.texture[0]; 971 texture_t& tx = c->state.texture[0];
@@ -982,7 +982,7 @@ protected:
982 982
983/* A variant for 16-bit source textures. */ 983/* A variant for 16-bit source textures. */
984struct horz_iterator16 { 984struct horz_iterator16 {
985 horz_iterator16(context_t* c) { 985 explicit horz_iterator16(context_t* c) {
986 const int x = c->iterators.xl; 986 const int x = c->iterators.xl;
987 const int y = c->iterators.y; 987 const int y = c->iterators.y;
988 texture_t& tx = c->state.texture[0]; 988 texture_t& tx = c->state.texture[0];
@@ -1002,7 +1002,7 @@ protected:
1002 * texture pixel value. 1002 * texture pixel value.
1003 */ 1003 */
1004struct clamp_iterator { 1004struct clamp_iterator {
1005 clamp_iterator(context_t* c) { 1005 explicit clamp_iterator(context_t* c) {
1006 const int xs = c->iterators.xl; 1006 const int xs = c->iterators.xl;
1007 texture_t& tx = c->state.texture[0]; 1007 texture_t& tx = c->state.texture[0];
1008 texture_iterators_t& ti = tx.iterators; 1008 texture_iterators_t& ti = tx.iterators;
@@ -1112,13 +1112,13 @@ void horz_clamp_iterator::init(const context_t* c, int shift)
1112} 1112}
1113 1113
1114struct horz_clamp_iterator16 : horz_clamp_iterator { 1114struct horz_clamp_iterator16 : horz_clamp_iterator {
1115 horz_clamp_iterator16(const context_t* c) { 1115 explicit horz_clamp_iterator16(const context_t* c) {
1116 init(c,1); 1116 init(c,1);
1117 }; 1117 };
1118}; 1118};
1119 1119
1120struct horz_clamp_iterator32 : horz_clamp_iterator { 1120struct horz_clamp_iterator32 : horz_clamp_iterator {
1121 horz_clamp_iterator32(context_t* c) { 1121 explicit horz_clamp_iterator32(context_t* c) {
1122 init(c,2); 1122 init(c,2);
1123 }; 1123 };
1124}; 1124};
@@ -1126,7 +1126,7 @@ struct horz_clamp_iterator32 : horz_clamp_iterator {
1126/* This is used to perform dithering operations. 1126/* This is used to perform dithering operations.
1127 */ 1127 */
1128struct ditherer { 1128struct ditherer {
1129 ditherer(const context_t* c) { 1129 explicit ditherer(const context_t* c) {
1130 const int x = c->iterators.xl; 1130 const int x = c->iterators.xl;
1131 const int y = c->iterators.y; 1131 const int y = c->iterators.y;
1132 m_line = &c->ditherMatrix[ ((y & GGL_DITHER_MASK)<<GGL_DITHER_ORDER_SHIFT) ]; 1132 m_line = &c->ditherMatrix[ ((y & GGL_DITHER_MASK)<<GGL_DITHER_ORDER_SHIFT) ];
@@ -1172,7 +1172,7 @@ protected:
1172 * blender.blend(<32-bit-src-pixel-value>,<ptr-to-16-bit-dest-pixel>) 1172 * blender.blend(<32-bit-src-pixel-value>,<ptr-to-16-bit-dest-pixel>)
1173 */ 1173 */
1174struct blender_32to16 { 1174struct blender_32to16 {
1175 blender_32to16(context_t* /*c*/) { } 1175 explicit blender_32to16(context_t* /*c*/) { }
1176 void write(uint32_t s, uint16_t* dst) { 1176 void write(uint32_t s, uint16_t* dst) {
1177 if (s == 0) 1177 if (s == 0)
1178 return; 1178 return;
@@ -1229,7 +1229,7 @@ struct blender_32to16 {
1229 * where dstFactor=srcA*(1-srcA) srcFactor=srcA 1229 * where dstFactor=srcA*(1-srcA) srcFactor=srcA
1230 */ 1230 */
1231struct blender_32to16_srcA { 1231struct blender_32to16_srcA {
1232 blender_32to16_srcA(const context_t* /*c*/) { } 1232 explicit blender_32to16_srcA(const context_t* /*c*/) { }
1233 void write(uint32_t s, uint16_t* dst) { 1233 void write(uint32_t s, uint16_t* dst) {
1234 if (!s) { 1234 if (!s) {
1235 return; 1235 return;
@@ -1271,7 +1271,7 @@ protected:
1271/* This blender does a normal blend after modulation. 1271/* This blender does a normal blend after modulation.
1272 */ 1272 */
1273struct blender_32to16_modulate : blender_modulate { 1273struct blender_32to16_modulate : blender_modulate {
1274 blender_32to16_modulate(const context_t* c) { 1274 explicit blender_32to16_modulate(const context_t* c) {
1275 init(c); 1275 init(c);
1276 } 1276 }
1277 void write(uint32_t s, uint16_t* dst) { 1277 void write(uint32_t s, uint16_t* dst) {
@@ -1343,7 +1343,7 @@ struct blender_32to16_modulate : blender_modulate {
1343 1343
1344/* same as 32to16_modulate, except that the input is xRGB, instead of ARGB */ 1344/* same as 32to16_modulate, except that the input is xRGB, instead of ARGB */
1345struct blender_x32to16_modulate : blender_modulate { 1345struct blender_x32to16_modulate : blender_modulate {
1346 blender_x32to16_modulate(const context_t* c) { 1346 explicit blender_x32to16_modulate(const context_t* c) {
1347 init(c); 1347 init(c);
1348 } 1348 }
1349 void write(uint32_t s, uint16_t* dst) { 1349 void write(uint32_t s, uint16_t* dst) {
@@ -1398,7 +1398,7 @@ struct blender_x32to16_modulate : blender_modulate {
1398 1398
1399/* Same as above, but source is 16bit rgb565 */ 1399/* Same as above, but source is 16bit rgb565 */
1400struct blender_16to16_modulate : blender_modulate { 1400struct blender_16to16_modulate : blender_modulate {
1401 blender_16to16_modulate(const context_t* c) { 1401 explicit blender_16to16_modulate(const context_t* c) {
1402 init(c); 1402 init(c);
1403 } 1403 }
1404 void write(uint16_t s16, uint16_t* dst) { 1404 void write(uint16_t s16, uint16_t* dst) {
@@ -1434,7 +1434,7 @@ struct blender_16to16_modulate : blender_modulate {
1434 * } 1434 * }
1435 */ 1435 */
1436struct dst_iterator16 { 1436struct dst_iterator16 {
1437 dst_iterator16(const context_t* c) { 1437 explicit dst_iterator16(const context_t* c) {
1438 const int x = c->iterators.xl; 1438 const int x = c->iterators.xl;
1439 const int width = c->iterators.xr - x; 1439 const int width = c->iterators.xr - x;
1440 const int32_t y = c->iterators.y; 1440 const int32_t y = c->iterators.y;