| Index: ppapi/proxy/compositor_layer_resource.cc
|
| diff --git a/ppapi/proxy/compositor_layer_resource.cc b/ppapi/proxy/compositor_layer_resource.cc
|
| index fc88f6a5f01b07d2e5dea9c0d73fb7a9860d71be..838a51389bc315ae6e8414d7e2fa8982ffa3784a 100644
|
| --- a/ppapi/proxy/compositor_layer_resource.cc
|
| +++ b/ppapi/proxy/compositor_layer_resource.cc
|
| @@ -344,19 +344,19 @@ bool CompositorLayerResource::SetType(LayerType type) {
|
| if (type == TYPE_COLOR) {
|
| if (data_.is_null())
|
| data_.color.reset(new CompositorLayerData::ColorLayer());
|
| - return data_.color;
|
| + return !!data_.color;
|
| }
|
|
|
| if (type == TYPE_TEXTURE) {
|
| if (data_.is_null())
|
| data_.texture.reset(new CompositorLayerData::TextureLayer());
|
| - return data_.texture;
|
| + return !!data_.texture;
|
| }
|
|
|
| if (type == TYPE_IMAGE) {
|
| if (data_.is_null())
|
| data_.image.reset(new CompositorLayerData::ImageLayer());
|
| - return data_.image;
|
| + return !!data_.image;
|
| }
|
|
|
| // Should not be reached.
|
|
|