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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_linux.cc

Issue 458313002: Browser side OZONE_NATIVE_BUFFER allocation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/common/gpu/client/gpu_memory_buffer_impl_linux.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_linux.cc b/content/common/gpu/client/gpu_memory_buffer_impl_linux.cc
index 0fc371b99dac9f24de68c5c5d347bec58863eca8..b0a938f9e7ecd57fbc6ba350be6d04a50d92449f 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_linux.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_linux.cc
@@ -7,6 +7,11 @@
#include "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h"
namespace content {
+#if defined(USE_OZONE)
+namespace {
+const int kBrowserClientId = 1;
+} // namespace
+#endif // defined(USE_OZONE)
reveman 2014/08/12 20:19:11 remove all this
achaulk 2014/08/12 21:38:01 Done.
// static
scoped_ptr<GpuMemoryBufferImpl> GpuMemoryBufferImpl::Create(
@@ -32,6 +37,8 @@ void GpuMemoryBufferImpl::AllocateForChildProcess(
unsigned internalformat,
unsigned usage,
base::ProcessHandle child_process,
+ int child_id,
+ GpuMemoryBufferFactoryHost* factory_host,
const AllocationCallback& callback) {
if (GpuMemoryBufferImplSharedMemory::IsConfigurationSupported(
size, internalformat, usage)) {

Powered by Google App Engine
This is Rietveld 408576698