OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 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 #include "ppapi/cpp/video_encoder.h" | 5 #include "ppapi/cpp/video_encoder.h" |
6 | 6 |
7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/c/ppb_video_encoder.h" | 8 #include "ppapi/c/ppb_video_encoder.h" |
9 #include "ppapi/cpp/completion_callback.h" | 9 #include "ppapi/cpp/completion_callback.h" |
10 #include "ppapi/cpp/instance_handle.h" | 10 #include "ppapi/cpp/instance_handle.h" |
11 #include "ppapi/cpp/module.h" | 11 #include "ppapi/cpp/module.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 } | 119 } |
120 } | 120 } |
121 | 121 |
122 void VideoEncoder::Close() { | 122 void VideoEncoder::Close() { |
123 if (has_interface<PPB_VideoEncoder_0_1>()) { | 123 if (has_interface<PPB_VideoEncoder_0_1>()) { |
124 get_interface<PPB_VideoEncoder_0_1>()->Close(pp_resource()); | 124 get_interface<PPB_VideoEncoder_0_1>()->Close(pp_resource()); |
125 } | 125 } |
126 } | 126 } |
127 | 127 |
128 } // namespace pp | 128 } // namespace pp |
OLD | NEW |