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

Side by Side Diff: media/video/video_decode_accelerator.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 | « media/filters/gpu_video_decoder.cc ('k') | ppapi/api/dev/ppp_video_decoder_dev.idl » ('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 MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // to the plugin, through the PPP_VideoDecode_Dev interface the plugin 45 // to the plugin, through the PPP_VideoDecode_Dev interface the plugin
46 // implements. 46 // implements.
47 class MEDIA_EXPORT Client { 47 class MEDIA_EXPORT Client {
48 public: 48 public:
49 virtual ~Client() {} 49 virtual ~Client() {}
50 50
51 // Callback to notify client that decoder has been initialized. 51 // Callback to notify client that decoder has been initialized.
52 virtual void NotifyInitializeDone() = 0; 52 virtual void NotifyInitializeDone() = 0;
53 53
54 // Callback to tell client how many and what size of buffers to provide. 54 // Callback to tell client how many and what size of buffers to provide.
55 virtual void ProvidePictureBuffers( 55 virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers,
56 uint32 requested_num_of_buffers, const gfx::Size& dimensions) = 0; 56 const gfx::Size& dimensions,
57 uint32 texture_target) = 0;
57 58
58 // Callback to dismiss picture buffer that was assigned earlier. 59 // Callback to dismiss picture buffer that was assigned earlier.
59 virtual void DismissPictureBuffer(int32 picture_buffer_id) = 0; 60 virtual void DismissPictureBuffer(int32 picture_buffer_id) = 0;
60 61
61 // Callback to deliver decoded pictures ready to be displayed. 62 // Callback to deliver decoded pictures ready to be displayed.
62 virtual void PictureReady(const Picture& picture) = 0; 63 virtual void PictureReady(const Picture& picture) = 0;
63 64
64 // Callback to notify that decoded has decoded the end of the current 65 // Callback to notify that decoded has decoded the end of the current
65 // bitstream buffer. 66 // bitstream buffer.
66 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) = 0; 67 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) = 0;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void Destroy() = 0; 129 virtual void Destroy() = 0;
129 130
130 protected: 131 protected:
131 friend class base::RefCountedThreadSafe<VideoDecodeAccelerator>; 132 friend class base::RefCountedThreadSafe<VideoDecodeAccelerator>;
132 virtual ~VideoDecodeAccelerator(); 133 virtual ~VideoDecodeAccelerator();
133 }; 134 };
134 135
135 } // namespace media 136 } // namespace media
136 137
137 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 138 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | ppapi/api/dev/ppp_video_decoder_dev.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698