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

Side by Side Diff: content/renderer/pepper_platform_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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 19 matching lines...) Expand all
30 virtual void Flush() OVERRIDE; 30 virtual void Flush() OVERRIDE;
31 virtual void Reset() OVERRIDE; 31 virtual void Reset() OVERRIDE;
32 virtual void Destroy() OVERRIDE; 32 virtual void Destroy() OVERRIDE;
33 33
34 // VideoDecodeAccelerator::Client implementation. 34 // VideoDecodeAccelerator::Client implementation.
35 virtual void ProvidePictureBuffers( 35 virtual void ProvidePictureBuffers(
36 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE; 36 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE;
37 virtual void PictureReady(const media::Picture& picture) OVERRIDE; 37 virtual void PictureReady(const media::Picture& picture) OVERRIDE;
38 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; 38 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE;
39 virtual void NotifyInitializeDone() OVERRIDE; 39 virtual void NotifyInitializeDone() OVERRIDE;
40 virtual void NotifyEndOfStream() OVERRIDE;
41 virtual void NotifyError( 40 virtual void NotifyError(
42 media::VideoDecodeAccelerator::Error error) OVERRIDE; 41 media::VideoDecodeAccelerator::Error error) OVERRIDE;
43 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; 42 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE;
44 virtual void NotifyFlushDone() OVERRIDE; 43 virtual void NotifyFlushDone() OVERRIDE;
45 virtual void NotifyResetDone() OVERRIDE; 44 virtual void NotifyResetDone() OVERRIDE;
46 45
47 private: 46 private:
48 virtual ~PlatformVideoDecoderImpl(); 47 virtual ~PlatformVideoDecoderImpl();
49 48
50 // Client lifetime must exceed lifetime of this class. 49 // Client lifetime must exceed lifetime of this class.
51 // TODO(vrk/fischman): We should take another look at the overall 50 // TODO(vrk/fischman): We should take another look at the overall
52 // arcitecture of PPAPI Video Decode to make sure lifetime/ownership makes 51 // arcitecture of PPAPI Video Decode to make sure lifetime/ownership makes
53 // sense, including lifetime of this client. 52 // sense, including lifetime of this client.
54 media::VideoDecodeAccelerator::Client* client_; 53 media::VideoDecodeAccelerator::Client* client_;
55 54
56 // Route ID for the command buffer associated with video decoder's context. 55 // Route ID for the command buffer associated with video decoder's context.
57 int32 command_buffer_route_id_; 56 int32 command_buffer_route_id_;
58 57
59 // Holds a GpuVideoDecodeAcceleratorHost. 58 // Holds a GpuVideoDecodeAcceleratorHost.
60 scoped_refptr<media::VideoDecodeAccelerator> decoder_; 59 scoped_refptr<media::VideoDecodeAccelerator> decoder_;
61 60
62 DISALLOW_COPY_AND_ASSIGN(PlatformVideoDecoderImpl); 61 DISALLOW_COPY_AND_ASSIGN(PlatformVideoDecoderImpl);
63 }; 62 };
64 #endif // CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ 63 #endif // CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_video_decode_accelerator_host.cc ('k') | content/renderer/pepper_platform_video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698