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

Side by Side Diff: content/renderer/pepper_platform_video_decoder_impl.h

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "media/video/video_decode_accelerator.h" 12 #include "media/video/video_decode_accelerator.h"
13 #include "webkit/plugins/ppapi/plugin_delegate.h" 13 #include "webkit/plugins/ppapi/plugin_delegate.h"
14 14
15 class PlatformVideoDecoderImpl 15 class PlatformVideoDecoderImpl
16 : public webkit::ppapi::PluginDelegate::PlatformVideoDecoder, 16 : public webkit::ppapi::PluginDelegate::PlatformVideoDecoder,
17 public media::VideoDecodeAccelerator::Client { 17 public media::VideoDecodeAccelerator::Client {
18 public: 18 public:
19 PlatformVideoDecoderImpl( 19 PlatformVideoDecoderImpl(
20 media::VideoDecodeAccelerator::Client* client, 20 media::VideoDecodeAccelerator::Client* client,
21 int32 command_buffer_route_id); 21 int32 command_buffer_route_id);
22 22
23 // PlatformVideoDecoder (a.k.a. VideoDecodeAccelerator) implementation. 23 // PlatformVideoDecoder (a.k.a. VideoDecodeAccelerator) implementation.
24 virtual bool Initialize(Profile profile) OVERRIDE; 24 virtual bool Initialize(Profile profile) OVERRIDE;
25 virtual void Decode( 25 virtual void Decode(
26 const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; 26 const media::BitstreamBuffer& bitstream_buffer) OVERRIDE;
27 virtual void AssignPictureBuffers( 27 virtual void AssignPictureBuffers(
28 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; 28 const std::vector<media::PictureBuffer>& buffers) OVERRIDE;
29 virtual void ReusePictureBuffer(int32 picture_buffer_id); 29 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
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;
(...skipping 15 matching lines...) Expand all
55 55
56 // Route ID for the command buffer associated with video decoder's context. 56 // Route ID for the command buffer associated with video decoder's context.
57 int32 command_buffer_route_id_; 57 int32 command_buffer_route_id_;
58 58
59 // Holds a GpuVideoDecodeAcceleratorHost. 59 // Holds a GpuVideoDecodeAcceleratorHost.
60 scoped_refptr<media::VideoDecodeAccelerator> decoder_; 60 scoped_refptr<media::VideoDecodeAccelerator> decoder_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(PlatformVideoDecoderImpl); 62 DISALLOW_COPY_AND_ASSIGN(PlatformVideoDecoderImpl);
63 }; 63 };
64 #endif // CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ 64 #endif // CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper_platform_context_3d_impl.h ('k') | content/renderer/pepper_plugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698