| Index: cc/layers/surface_layer.cc
|
| diff --git a/cc/layers/surface_layer.cc b/cc/layers/surface_layer.cc
|
| index f345b7423ddbe58e0665bd8d5740a343ca9ef08e..862d3f088a7a57d00600d0c23705d90f500b6848 100644
|
| --- a/cc/layers/surface_layer.cc
|
| +++ b/cc/layers/surface_layer.cc
|
| @@ -19,6 +19,7 @@ SurfaceLayer::~SurfaceLayer() {}
|
|
|
| void SurfaceLayer::SetSurfaceId(SurfaceId surface_id) {
|
| surface_id_ = surface_id;
|
| + UpdateDrawsContent(true);
|
| SetNeedsPushProperties();
|
| }
|
|
|
| @@ -26,8 +27,8 @@ scoped_ptr<LayerImpl> SurfaceLayer::CreateLayerImpl(LayerTreeImpl* tree_impl) {
|
| return SurfaceLayerImpl::Create(tree_impl, id()).PassAs<LayerImpl>();
|
| }
|
|
|
| -bool SurfaceLayer::DrawsContent() const {
|
| - return !surface_id_.is_null() && Layer::DrawsContent();
|
| +void SurfaceLayer::UpdateDrawsContent(bool draws_content) {
|
| + return Layer::UpdateDrawsContent(draws_content && !surface_id_.is_null());
|
| }
|
|
|
| void SurfaceLayer::PushPropertiesTo(LayerImpl* layer) {
|
|
|