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

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

Issue 9186022: Remove VideoDecodeAccelerator::Client::NotifyEndOfStream / PPP_VideoDecoder_Dev::EndOfStream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 11 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/tests/arch_dependent_sizes_64.h ('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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual int32_t Flush(PP_CompletionCallback callback) OVERRIDE; 49 virtual int32_t Flush(PP_CompletionCallback callback) OVERRIDE;
50 virtual int32_t Reset(PP_CompletionCallback callback) OVERRIDE; 50 virtual int32_t Reset(PP_CompletionCallback callback) OVERRIDE;
51 virtual void Destroy() OVERRIDE; 51 virtual void Destroy() OVERRIDE;
52 52
53 // media::VideoDecodeAccelerator::Client implementation. 53 // media::VideoDecodeAccelerator::Client implementation.
54 virtual void ProvidePictureBuffers( 54 virtual void ProvidePictureBuffers(
55 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE; 55 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE;
56 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; 56 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE;
57 virtual void PictureReady(const media::Picture& picture) OVERRIDE; 57 virtual void PictureReady(const media::Picture& picture) OVERRIDE;
58 virtual void NotifyInitializeDone() OVERRIDE; 58 virtual void NotifyInitializeDone() OVERRIDE;
59 virtual void NotifyEndOfStream() OVERRIDE;
60 virtual void NotifyError( 59 virtual void NotifyError(
61 media::VideoDecodeAccelerator::Error error) OVERRIDE; 60 media::VideoDecodeAccelerator::Error error) OVERRIDE;
62 virtual void NotifyFlushDone() OVERRIDE; 61 virtual void NotifyFlushDone() OVERRIDE;
63 virtual void NotifyEndOfBitstreamBuffer(int32 buffer_id) OVERRIDE; 62 virtual void NotifyEndOfBitstreamBuffer(int32 buffer_id) OVERRIDE;
64 virtual void NotifyResetDone() OVERRIDE; 63 virtual void NotifyResetDone() OVERRIDE;
65 64
66 private: 65 private:
67 explicit PPB_VideoDecoder_Impl(PP_Instance instance); 66 explicit PPB_VideoDecoder_Impl(PP_Instance instance);
68 bool Init(PP_Resource graphics_context, 67 bool Init(PP_Resource graphics_context,
69 PluginDelegate::PlatformContext3D* context, 68 PluginDelegate::PlatformContext3D* context,
70 gpu::gles2::GLES2Implementation* gles2_impl, 69 gpu::gles2::GLES2Implementation* gles2_impl,
71 PP_VideoDecoder_Profile profile); 70 PP_VideoDecoder_Profile profile);
72 71
73 // This is NULL before initialization, and if this PPB_VideoDecoder_Impl is 72 // This is NULL before initialization, and if this PPB_VideoDecoder_Impl is
74 // swapped with another. 73 // swapped with another.
75 scoped_refptr<PluginDelegate::PlatformVideoDecoder> platform_video_decoder_; 74 scoped_refptr<PluginDelegate::PlatformVideoDecoder> platform_video_decoder_;
76 75
77 // Reference to the plugin requesting this interface. 76 // Reference to the plugin requesting this interface.
78 const PPP_VideoDecoder_Dev* ppp_videodecoder_; 77 const PPP_VideoDecoder_Dev* ppp_videodecoder_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); 79 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl);
81 }; 80 };
82 81
83 } // namespace ppapi 82 } // namespace ppapi
84 } // namespace webkit 83 } // namespace webkit
85 84
86 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 85 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
OLDNEW
« no previous file with comments | « ppapi/tests/arch_dependent_sizes_64.h ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698