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

Unified Diff: media/video/video_decode_accelerator.h

Issue 7021020: Clean up video frame sizes, types in Video Decode API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: media/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index 807f9232fae7a00eeb7db587668b6fd000dd18e9..46c6d873371658dc92b04c96cfa7afbe3ff14b12 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -170,13 +170,6 @@ class VideoDecodeAccelerator {
VIDEODECODERERROR_UNEXPECTED_FLUSH,
};
- // Represents the type of data buffer to be used by the decoder.
- enum MemoryType {
- PICTUREBUFFER_MEMORYTYPE_NONE = 0,
- PICTUREBUFFER_MEMORYTYPE_SYSTEM,
- PICTUREBUFFER_MEMORYTYPE_GL_TEXTURE,
- };
Ville-Mikko Rautio 2011/05/17 08:58:49 See the comment in pp_video_dev.h
-
// Interface for collaborating with picture interface to provide memory for
// output picture and blitting them.
// This interface is extended by the various layers that relay messages back
@@ -186,12 +179,9 @@ class VideoDecodeAccelerator {
public:
virtual ~Client() {}
- // Callback to tell the information needed by the client to provide decoding
- // buffer to the decoder.
+ // Callback to tell client how many and what size of buffers to provide.
virtual void ProvidePictureBuffers(
- uint32 requested_num_of_buffers,
- const gfx::Size& dimensions,
- MemoryType type) = 0;
+ uint32 requested_num_of_buffers, const gfx::Size& dimensions) = 0;
// Callback to dismiss picture buffer that was assigned earlier.
virtual void DismissPictureBuffer(int32 picture_buffer_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698