summaryrefslogtreecommitdiffstats
path: root/content/browser/aura
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/aura')
-rw-r--r--content/browser/aura/gpu_process_transport_factory.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/browser/aura/gpu_process_transport_factory.cc b/content/browser/aura/gpu_process_transport_factory.cc
index 12bfd8c..be5fc24 100644
--- a/content/browser/aura/gpu_process_transport_factory.cc
+++ b/content/browser/aura/gpu_process_transport_factory.cc
@@ -67,6 +67,8 @@ class OwnedTexture : public ui::Texture, ImageTransportFactoryObserver {
// ui::Texture overrides:
virtual unsigned int PrepareTexture() OVERRIDE {
+ if (!host_context_ || host_context_->isContextLost())
+ return 0u;
return texture_id_;
}