| 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_
|
|
|