| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_GPU_DRI_BUFFER_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_GPU_DRI_BUFFER_MANAGER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "ui/gfx/gpu_memory_buffer.h" |
| 10 |
| 11 struct gbm_device; |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class DRIBufferManager { |
| 16 public: |
| 17 DRIBufferManager(); |
| 18 virtual ~DRIBufferManager(); |
| 19 |
| 20 static void CreateBuffer(int width, int height, gfx::GpuMemoryBufferHandle& ha
ndle); |
| 21 private: |
| 22 static bool AuthConnection(); |
| 23 bool IsMmapSupported(); |
| 24 bool MmapDmaBuf(int dma_buf_id, int proc, int stride); |
| 25 static int fd_; |
| 26 static struct gbm_device* gbm_; |
| 27 DISALLOW_COPY_AND_ASSIGN(DRIBufferManager); |
| 28 }; |
| 29 |
| 30 } // namespace content |
| 31 |
| 32 #endif // CONTENT_BROWSER_GPU_DRI_BUFFER_MANAGER_H_ |
| OLD | NEW |