| Index: ppapi/thunk/ppb_video_encoder_api.h
|
| diff --git a/ppapi/thunk/ppb_video_encoder_api.h b/ppapi/thunk/ppb_video_encoder_api.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5283dce020ed91894a64ea0e3e41c814f1fb661b
|
| --- /dev/null
|
| +++ b/ppapi/thunk/ppb_video_encoder_api.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2014 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 PPAPI_THUNK_VIDEO_ENCODER_API_H_
|
| +#define PPAPI_THUNK_VIDEO_ENCODER_API_H_
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +#include "ppapi/c/ppb_video_encoder.h"
|
| +#include "ppapi/thunk/ppapi_thunk_export.h"
|
| +
|
| +namespace ppapi {
|
| +
|
| +class TrackedCallback;
|
| +
|
| +namespace thunk {
|
| +
|
| +class PPAPI_THUNK_EXPORT PPB_VideoEncoder_API {
|
| + public:
|
| + virtual ~PPB_VideoEncoder_API() {}
|
| +
|
| + virtual int32_t Initialize(PP_Resource graphics_context,
|
| + const struct PP_VideoEncoderParams* params,
|
| + void* user_data,
|
| + PPB_VideoEncoder_Ready_Func callback) = 0;
|
| + virtual int32_t Encode(uint32_t encode_id,
|
| + const PP_VideoEncoderPicture *picture,
|
| + PP_Bool force_keyframe,
|
| + scoped_refptr<TrackedCallback> callback) = 0;
|
| + virtual int32_t Reset(scoped_refptr<TrackedCallback> callback) = 0;
|
| +};
|
| +
|
| +} // namespace thunk
|
| +} // namespace ppapi
|
| +
|
| +#endif // PPAPI_THUNK_VIDEO_ENCODER_API_H_
|
|
|