| Index: cc/layers/texture_layer.cc
|
| diff --git a/cc/layers/texture_layer.cc b/cc/layers/texture_layer.cc
|
| index 05391fe5d637bf8a93c2cd4ae8b1dac11ff643ac..b21859c3f00e6d4aa92824e9b343d87fb7896221 100644
|
| --- a/cc/layers/texture_layer.cc
|
| +++ b/cc/layers/texture_layer.cc
|
| @@ -45,6 +45,7 @@ void TextureLayer::ClearClient() {
|
| layer_tree_host()->StopRateLimiter();
|
| client_ = NULL;
|
| ClearTexture();
|
| + UpdateDrawsContent(true);
|
| }
|
|
|
| void TextureLayer::ClearTexture() {
|
| @@ -136,6 +137,7 @@ void TextureLayer::SetTextureMailboxInternal(
|
| else
|
| SetNeedsPushProperties();
|
|
|
| + UpdateDrawsContent(true);
|
| // The active frame needs to be replaced and the mailbox returned before the
|
| // commit is called complete.
|
| SetNextCommitWaitsForActivation();
|
| @@ -198,8 +200,8 @@ void TextureLayer::SetLayerTreeHost(LayerTreeHost* host) {
|
| Layer::SetLayerTreeHost(host);
|
| }
|
|
|
| -bool TextureLayer::DrawsContent() const {
|
| - return (client_ || holder_ref_) && Layer::DrawsContent();
|
| +void TextureLayer::UpdateDrawsContent(bool draws_content) {
|
| + Layer::UpdateDrawsContent(draws_content && (client_ || holder_ref_));
|
| }
|
|
|
| bool TextureLayer::Update(ResourceUpdateQueue* queue,
|
|
|