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

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

Issue 1139903005: Add PERSISTENT_MAP usage for GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: persistentmap: fixmandolinebetter 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.h
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.h b/content/browser/gpu/browser_gpu_channel_host_factory.h
index b4df563fc02b9796cc163fd743350336cd784967..ec075b2e5cc5b5c0e17c8fe803c34cdccd069888 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.h
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.h
@@ -29,7 +29,8 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
gfx::GpuMemoryBuffer::Usage usage);
static bool IsGpuMemoryBufferFactoryUsageEnabled(
gfx::GpuMemoryBuffer::Usage usage);
- static uint32 GetImageTextureTarget();
+ static uint32 GetImageTextureTarget(gfx::GpuMemoryBuffer::Format format,
+ gfx::GpuMemoryBuffer::Usage usage);
// Overridden from GpuChannelHostFactory:
bool IsMainThread() override;
@@ -76,6 +77,10 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
BrowserGpuChannelHostFactory();
~BrowserGpuChannelHostFactory() override;
+ static bool IsGpuMemoryBufferConfigurationSupportedInternal(
reveman 2015/05/20 14:26:08 If you can move this to the anonymous namespace of
+ gfx::GpuMemoryBuffer::Format format,
+ gfx::GpuMemoryBuffer::Usage usage);
+
void GpuChannelEstablished();
void CreateViewCommandBufferOnIO(
CreateRequest* request,

Powered by Google App Engine
This is Rietveld 408576698