diff options
Diffstat (limited to 'ppapi/proxy/compositor_layer_resource.cc')
| -rw-r--r-- | ppapi/proxy/compositor_layer_resource.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ppapi/proxy/compositor_layer_resource.cc b/ppapi/proxy/compositor_layer_resource.cc index fc88f6a..838a513 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. |
