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

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

Issue 288343004: working copy of "zero_copy" Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | content/browser/gpu/dri_buffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/dri_buffer_manager.h
===================================================================
--- content/browser/gpu/dri_buffer_manager.h (revision 0)
+++ content/browser/gpu/dri_buffer_manager.h (revision 0)
@@ -0,0 +1,32 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_GPU_DRI_BUFFER_MANAGER_H_
+#define CONTENT_BROWSER_GPU_DRI_BUFFER_MANAGER_H_
+
+#include "base/basictypes.h"
+#include "ui/gfx/gpu_memory_buffer.h"
+
+struct gbm_device;
+
+namespace content {
+
+class DRIBufferManager {
+ public:
+ DRIBufferManager();
+ virtual ~DRIBufferManager();
+
+ static void CreateBuffer(int width, int height, gfx::GpuMemoryBufferHandle& handle);
+ private:
+ static bool AuthConnection();
+ bool IsMmapSupported();
+ bool MmapDmaBuf(int dma_buf_id, int proc, int stride);
+ static int fd_;
+ static struct gbm_device* gbm_;
+ DISALLOW_COPY_AND_ASSIGN(DRIBufferManager);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_GPU_DRI_BUFFER_MANAGER_H_
« no previous file with comments | « no previous file | content/browser/gpu/dri_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698