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

Side by Side Diff: ui/gfx/gpu_memory_buffer.h

Issue 1106563002: FakeVideoCaptureDevice: add support for capturing into Dma-Bufs using VGEM in CrOs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ermircan@ comments; removed GpuMemoryBuffer modifications (go in other CL) Created 5 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_GPU_MEMORY_BUFFER_H_ 5 #ifndef UI_GFX_GPU_MEMORY_BUFFER_H_
6 #define UI_GFX_GPU_MEMORY_BUFFER_H_ 6 #define UI_GFX_GPU_MEMORY_BUFFER_H_
7 7
8 #include "base/files/file.h"
8 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
9 #include "build/build_config.h" 10 #include "build/build_config.h"
10 #include "ui/gfx/gfx_export.h" 11 #include "ui/gfx/gfx_export.h"
11 12
12 extern "C" typedef struct _ClientBuffer* ClientBuffer; 13 extern "C" typedef struct _ClientBuffer* ClientBuffer;
13 14
14 namespace gfx { 15 namespace gfx {
15 16
16 enum GpuMemoryBufferType { 17 enum GpuMemoryBufferType {
17 EMPTY_BUFFER, 18 EMPTY_BUFFER,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Returns a platform specific handle for this buffer. 88 // Returns a platform specific handle for this buffer.
88 virtual GpuMemoryBufferHandle GetHandle() const = 0; 89 virtual GpuMemoryBufferHandle GetHandle() const = 0;
89 90
90 // Type-checking downcast routine. 91 // Type-checking downcast routine.
91 virtual ClientBuffer AsClientBuffer() = 0; 92 virtual ClientBuffer AsClientBuffer() = 0;
92 }; 93 };
93 94
94 } // namespace gfx 95 } // namespace gfx
95 96
96 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ 97 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698