Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Unified Diff: content/browser/aura/gpu_process_transport_factory.cc

Issue 51653008: Remove WGC3D::isContextLost references from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/aura/gpu_process_transport_factory.cc
diff --git a/content/browser/aura/gpu_process_transport_factory.cc b/content/browser/aura/gpu_process_transport_factory.cc
index 12bfd8c94830b323c9f7a2ad0a66f4884b27da7b..be5fc2422e1257913392dd89ea9a4cea69e093f8 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_;
}
« no previous file with comments | « cc/test/test_web_graphics_context_3d.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698