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

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

Issue 1120873002: Re-land: content: Single process support for native GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dm-browsertests-refactor
Patch Set: Created 5 years, 7 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 9edb9677c56abc2b4801d5aa62193d362236b95c..7625449b9468f05598541ffdb3e95b4e81518a09 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc
@@ -244,6 +244,7 @@ void BrowserGpuChannelHostFactory::Terminate() {
// static
void BrowserGpuChannelHostFactory::EnableGpuMemoryBufferFactoryUsage(
gfx::GpuMemoryBuffer::Usage usage) {
+ DCHECK_EQ(g_enabled_gpu_memory_buffer_usages.Get().count(usage), 0u);
g_enabled_gpu_memory_buffer_usages.Get().insert(usage);
}

Powered by Google App Engine
This is Rietveld 408576698