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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/gpu/dri_buffer_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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