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

Unified Diff: content/browser/gpu/browser_gpu_channel_host_factory.h

Issue 2250473005: content: Fix Context creation logic in ContextProviderFactoryImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run the callback once, fix comments. Created 4 years, 4 months 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/gpu/browser_gpu_channel_host_factory.h
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.h b/content/browser/gpu/browser_gpu_channel_host_factory.h
index 64d7c495b7e253ab5c503a64800e5b344f620371..088610b361fe447a7cd6ca767535b5b52761da85 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.h
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.h
@@ -28,6 +28,8 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
public:
static void Initialize(bool establish_gpu_channel);
static void Terminate();
+
+ // The instance can be null during shutdown.
static BrowserGpuChannelHostFactory* instance() { return instance_; }
// Overridden from gpu::GpuChannelHostFactory:

Powered by Google App Engine
This is Rietveld 408576698