Index: content/common/gpu/video_encode_params.h |
diff --git a/content/common/gpu/video_encode_params.h b/content/common/gpu/video_encode_params.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..723478845f9625f6e33be7321c80122b10b6c1fb |
--- /dev/null |
+++ b/content/common/gpu/video_encode_params.h |
@@ -0,0 +1,42 @@ |
+// Copyright 2015 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_COMMON_GPU_VIDEO_ENCODE_PARAMS_H_ |
+#define CONTENT_COMMON_GPU_VIDEO_ENCODE_PARAMS_H_ |
+ |
+#include <vector> |
+ |
+#include "base/memory/shared_memory_handle.h" |
+#include "base/time/time.h" |
+#include "content/common/content_export.h" |
+#include "ui/gfx/gpu_memory_buffer.h" |
+ |
+namespace content { |
+ |
+struct CONTENT_EXPORT VideoEncodeParams { |
+ VideoEncodeParams(); |
+ ~VideoEncodeParams(); |
+ |
+ int32_t frame_id; |
+ base::TimeDelta timestamp; |
+ base::SharedMemoryHandle buffer_handle; |
+ uint32_t buffer_offset; |
+ uint32_t buffer_size; |
+ bool force_keyframe; |
+}; |
+ |
+struct CONTENT_EXPORT VideoEncodeParams2 { |
+ VideoEncodeParams2(); |
+ ~VideoEncodeParams2(); |
+ |
+ int32_t frame_id; |
+ base::TimeDelta timestamp; |
+ std::vector<gfx::GpuMemoryBufferHandle> gpu_memory_buffer_handles; |
+ gfx::Size size; |
+ bool force_keyframe; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_COMMON_GPU_VIDEO_ENCODE_PARAMS_H_ |