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

Side by Side Diff: webkit/plugins/ppapi/ppb_video_decoder_impl.h

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppp_video_decoder_proxy.cc ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual int32_t Decode(const PP_VideoBitstreamBuffer_Dev* bitstream_buffer, 42 virtual int32_t Decode(const PP_VideoBitstreamBuffer_Dev* bitstream_buffer,
43 PP_CompletionCallback callback) OVERRIDE; 43 PP_CompletionCallback callback) OVERRIDE;
44 virtual void AssignPictureBuffers( 44 virtual void AssignPictureBuffers(
45 uint32_t no_of_buffers, const PP_PictureBuffer_Dev* buffers) OVERRIDE; 45 uint32_t no_of_buffers, const PP_PictureBuffer_Dev* buffers) OVERRIDE;
46 virtual void ReusePictureBuffer(int32_t picture_buffer_id) OVERRIDE; 46 virtual void ReusePictureBuffer(int32_t picture_buffer_id) OVERRIDE;
47 virtual int32_t Flush(PP_CompletionCallback callback) OVERRIDE; 47 virtual int32_t Flush(PP_CompletionCallback callback) OVERRIDE;
48 virtual int32_t Reset(PP_CompletionCallback callback) OVERRIDE; 48 virtual int32_t Reset(PP_CompletionCallback callback) OVERRIDE;
49 virtual void Destroy() OVERRIDE; 49 virtual void Destroy() OVERRIDE;
50 50
51 // media::VideoDecodeAccelerator::Client implementation. 51 // media::VideoDecodeAccelerator::Client implementation.
52 virtual void ProvidePictureBuffers( 52 virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers,
53 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE; 53 const gfx::Size& dimensions,
54 uint32 texture_target) OVERRIDE;
54 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; 55 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE;
55 virtual void PictureReady(const media::Picture& picture) OVERRIDE; 56 virtual void PictureReady(const media::Picture& picture) OVERRIDE;
56 virtual void NotifyInitializeDone() OVERRIDE; 57 virtual void NotifyInitializeDone() OVERRIDE;
57 virtual void NotifyError( 58 virtual void NotifyError(
58 media::VideoDecodeAccelerator::Error error) OVERRIDE; 59 media::VideoDecodeAccelerator::Error error) OVERRIDE;
59 virtual void NotifyFlushDone() OVERRIDE; 60 virtual void NotifyFlushDone() OVERRIDE;
60 virtual void NotifyEndOfBitstreamBuffer(int32 buffer_id) OVERRIDE; 61 virtual void NotifyEndOfBitstreamBuffer(int32 buffer_id) OVERRIDE;
61 virtual void NotifyResetDone() OVERRIDE; 62 virtual void NotifyResetDone() OVERRIDE;
62 63
63 private: 64 private:
(...skipping 10 matching lines...) Expand all
74 // Reference to the plugin requesting this interface. 75 // Reference to the plugin requesting this interface.
75 const PPP_VideoDecoder_Dev* ppp_videodecoder_; 76 const PPP_VideoDecoder_Dev* ppp_videodecoder_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); 78 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl);
78 }; 79 };
79 80
80 } // namespace ppapi 81 } // namespace ppapi
81 } // namespace webkit 82 } // namespace webkit
82 83
83 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 84 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_video_decoder_proxy.cc ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698