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

Side by Side Diff: content/common/gpu/video_encode_params.h

Issue 1656433002: Sample code: IPC Transport object for GPU Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GpuMemoryBufferService + Transport object. TODO: Eliminate ChildThreadImpl dependency Created 4 years, 10 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
« no previous file with comments | « content/common/gpu/video_decode_params.cc ('k') | content/common/gpu/video_encode_params.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 2015 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_COMMON_GPU_VIDEO_ENCODE_PARAMS_H_
6 #define CONTENT_COMMON_GPU_VIDEO_ENCODE_PARAMS_H_
7
8 #include <vector>
9
10 #include "base/memory/shared_memory_handle.h"
11 #include "base/time/time.h"
12 #include "content/common/content_export.h"
13 #include "ui/gfx/gpu_memory_buffer.h"
14
15 namespace content {
16
17 struct CONTENT_EXPORT VideoEncodeParams {
18 VideoEncodeParams();
19 ~VideoEncodeParams();
20
21 int32_t frame_id;
22 base::TimeDelta timestamp;
23 base::SharedMemoryHandle buffer_handle;
24 uint32_t buffer_offset;
25 uint32_t buffer_size;
26 bool force_keyframe;
27 };
28
29 struct CONTENT_EXPORT VideoEncodeParams2 {
30 VideoEncodeParams2();
31 ~VideoEncodeParams2();
32
33 int32_t frame_id;
34 base::TimeDelta timestamp;
35 std::vector<gfx::GpuMemoryBufferHandle> gpu_memory_buffer_handles;
36 gfx::Size size;
37 bool force_keyframe;
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_COMMON_GPU_VIDEO_ENCODE_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/gpu/video_decode_params.cc ('k') | content/common/gpu/video_encode_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698