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

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

Issue 2971083002: gpu: Reduce direct use of BrowserGpuMemoryBufferManager (Closed)
Patch Set: . Created 3 years, 5 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.cc
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.cc b/content/browser/gpu/browser_gpu_channel_host_factory.cc
index 9c77f8abec4ec198d70b8f60d9b8688aa16528bc..3ce2724f2e4fbc5906ac62e6b57b94c68f0db83d 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc
@@ -174,14 +174,6 @@ void BrowserGpuChannelHostFactory::EstablishRequest::Cancel() {
finished_ = true;
}
-void BrowserGpuChannelHostFactory::CloseChannel() {
- DCHECK(instance_);
- if (instance_->gpu_channel_) {
- instance_->gpu_channel_->DestroyChannel();
- instance_->gpu_channel_ = nullptr;
- }
-}
-
void BrowserGpuChannelHostFactory::Initialize(bool establish_gpu_channel) {
DCHECK(!instance_);
instance_ = new BrowserGpuChannelHostFactory();

Powered by Google App Engine
This is Rietveld 408576698