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

Side by Side Diff: content/renderer/pepper/ppb_video_decoder_impl.h

Issue 1942123002: Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test on bots Created 4 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
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 CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 27 matching lines...) Expand all
38 scoped_refptr<ppapi::TrackedCallback> callback) override; 38 scoped_refptr<ppapi::TrackedCallback> callback) override;
39 void AssignPictureBuffers(uint32_t no_of_buffers, 39 void AssignPictureBuffers(uint32_t no_of_buffers,
40 const PP_PictureBuffer_Dev* buffers) override; 40 const PP_PictureBuffer_Dev* buffers) override;
41 void ReusePictureBuffer(int32_t picture_buffer_id) override; 41 void ReusePictureBuffer(int32_t picture_buffer_id) override;
42 int32_t Flush(scoped_refptr<ppapi::TrackedCallback> callback) override; 42 int32_t Flush(scoped_refptr<ppapi::TrackedCallback> callback) override;
43 int32_t Reset(scoped_refptr<ppapi::TrackedCallback> callback) override; 43 int32_t Reset(scoped_refptr<ppapi::TrackedCallback> callback) override;
44 void Destroy() override; 44 void Destroy() override;
45 45
46 // media::VideoDecodeAccelerator::Client implementation. 46 // media::VideoDecodeAccelerator::Client implementation.
47 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, 47 void ProvidePictureBuffers(uint32_t requested_num_of_buffers,
48 media::VideoPixelFormat format,
48 uint32_t textures_per_buffer, 49 uint32_t textures_per_buffer,
49 const gfx::Size& dimensions, 50 const gfx::Size& dimensions,
50 uint32_t texture_target) override; 51 uint32_t texture_target) override;
51 void DismissPictureBuffer(int32_t picture_buffer_id) override; 52 void DismissPictureBuffer(int32_t picture_buffer_id) override;
52 void PictureReady(const media::Picture& picture) override; 53 void PictureReady(const media::Picture& picture) override;
53 void NotifyError(media::VideoDecodeAccelerator::Error error) override; 54 void NotifyError(media::VideoDecodeAccelerator::Error error) override;
54 void NotifyFlushDone() override; 55 void NotifyFlushDone() override;
55 void NotifyEndOfBitstreamBuffer(int32_t buffer_id) override; 56 void NotifyEndOfBitstreamBuffer(int32_t buffer_id) override;
56 void NotifyResetDone() override; 57 void NotifyResetDone() override;
57 58
(...skipping 17 matching lines...) Expand all
75 // The interface to use when making calls on the plugin. For the most part, 76 // The interface to use when making calls on the plugin. For the most part,
76 // methods should not use this directly but should call GetPPP() instead. 77 // methods should not use this directly but should call GetPPP() instead.
77 const PPP_VideoDecoder_Dev* ppp_videodecoder_; 78 const PPP_VideoDecoder_Dev* ppp_videodecoder_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); 80 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl);
80 }; 81 };
81 82
82 } // namespace content 83 } // namespace content
83 84
84 #endif // CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ 85 #endif // CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_video_decoder_host.cc ('k') | content/renderer/pepper/ppb_video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698