Index: content/browser/gpu/compositor_util.cc |
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc |
index a652c39dbd9c6bc62ecff1ff5dc7a4e15dfb3486..6abe2e54172bf56a6be47b1a5030344008243cf6 100644 |
--- a/content/browser/gpu/compositor_util.cc |
+++ b/content/browser/gpu/compositor_util.cc |
@@ -268,6 +268,20 @@ bool IsZeroCopyUploadEnabled() { |
return command_line.HasSwitch(switches::kEnableZeroCopy); |
} |
+bool HavePersistentGpuMemoryBuffers() { |
+ // We don't need to support this for ZeroCopy as it can't do anything with it |
+ // yet. |
+ if (IsZeroCopyUploadEnabled()) |
+ return false; |
+ const base::CommandLine& command_line = |
+ *base::CommandLine::ForCurrentProcess(); |
+ if (command_line.HasSwitch(switches::kEnableNativeGpuMemoryBuffers)) { |
+ // TODO(reveman): Need native support for this. crbug.com/489438 |
+ return false; |
+ } |
+ return true; |
+} |
reveman
2015/05/22 17:15:13
How about we land the initial version of this with
danakj
2015/05/26 19:02:52
Sure, if you like. That'll make reverts smaller.
danakj
2015/05/26 23:37:34
Done.
|
+ |
bool IsGpuRasterizationEnabled() { |
const base::CommandLine& command_line = |
*base::CommandLine::ForCurrentProcess(); |