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

Side by Side Diff: ppapi/cpp/dev/video_decoder_dev.h

Issue 5539001: Remove all the swap() stuff in the PPAPI C++ wrappers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/dev/scrollbar_dev.cc ('k') | ppapi/cpp/dev/video_decoder_dev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
6 #define PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 6 #define PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
7 7
8 #include "ppapi/c/dev/pp_video_dev.h" 8 #include "ppapi/c/dev/pp_video_dev.h"
9 #include "ppapi/c/dev/ppb_video_decoder_dev.h" 9 #include "ppapi/c/dev/ppb_video_decoder_dev.h"
10 #include "ppapi/cpp/resource.h" 10 #include "ppapi/cpp/resource.h"
11 11
12 namespace pp { 12 namespace pp {
13 13
14 class Instance; 14 class Instance;
15 15
16 // Provides access to video decoders. 16 // Provides access to video decoders.
17 class VideoDecoder_Dev : public Resource { 17 class VideoDecoder_Dev : public Resource {
18 public: 18 public:
19 // Creates an is_null() VideoDecoder object. 19 // Creates an is_null() VideoDecoder object.
20 VideoDecoder_Dev() {} 20 VideoDecoder_Dev() {}
21 21
22 explicit VideoDecoder_Dev(PP_Resource resource); 22 explicit VideoDecoder_Dev(PP_Resource resource);
23 23
24 VideoDecoder_Dev(const Instance& instance, 24 VideoDecoder_Dev(const Instance& instance,
25 const PP_VideoDecoderConfig_Dev& decoder_config); 25 const PP_VideoDecoderConfig_Dev& decoder_config);
26 VideoDecoder_Dev(const VideoDecoder_Dev& other); 26 VideoDecoder_Dev(const VideoDecoder_Dev& other);
27 27
28 VideoDecoder_Dev& operator=(const VideoDecoder_Dev& other); 28 VideoDecoder_Dev& operator=(const VideoDecoder_Dev& other);
29 void swap(VideoDecoder_Dev& other);
30 29
31 // PPB_VideoDecoder methods: 30 // PPB_VideoDecoder methods:
32 static bool GetConfig(const Instance& instance, 31 static bool GetConfig(const Instance& instance,
33 PP_VideoCodecId_Dev codec, 32 PP_VideoCodecId_Dev codec,
34 PP_VideoConfig_Dev* configs, 33 PP_VideoConfig_Dev* configs,
35 int32_t config_size, 34 int32_t config_size,
36 int32_t* num_config); 35 int32_t* num_config);
37 36
38 bool Decode(PP_VideoCompressedDataBuffer_Dev& input_buffer); 37 bool Decode(PP_VideoCompressedDataBuffer_Dev& input_buffer);
39 38
40 int32_t Flush(PP_CompletionCallback callback); 39 int32_t Flush(PP_CompletionCallback callback);
41 40
42 bool ReturnUncompressedDataBuffer(PP_VideoUncompressedDataBuffer_Dev& buffer); 41 bool ReturnUncompressedDataBuffer(PP_VideoUncompressedDataBuffer_Dev& buffer);
43 }; 42 };
44 43
45 } // namespace pp 44 } // namespace pp
46 45
47 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 46 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/scrollbar_dev.cc ('k') | ppapi/cpp/dev/video_decoder_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698