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

Unified Diff: content/renderer/media/renderer_gpu_video_decoder_factories.h

Issue 11087063: Merge 159571 - Support reading pixels from HW-decoded video textures into canvas/webgl. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | content/renderer/media/renderer_gpu_video_decoder_factories.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/renderer_gpu_video_decoder_factories.h
===================================================================
--- content/renderer/media/renderer_gpu_video_decoder_factories.h (revision 161170)
+++ content/renderer/media/renderer_gpu_video_decoder_factories.h (working copy)
@@ -49,6 +49,9 @@
virtual void DeleteTexture(uint32 texture_id) OVERRIDE;
+ virtual void ReadPixels(uint32 texture_id, uint32 texture_target,
+ const gfx::Size& size, void* pixels) OVERRIDE;
+
virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE;
protected:
@@ -75,6 +78,9 @@
int32 count, const gfx::Size& size, std::vector<uint32>* texture_ids,
uint32 texture_target, bool* success, base::WaitableEvent* waiter);
void AsyncDeleteTexture(uint32 texture_id);
+ void AsyncReadPixels(uint32 texture_id, uint32 texture_target,
+ const gfx::Size& size,
+ void* pixels, base::WaitableEvent* waiter);
void AsyncCreateSharedMemory(
size_t size, base::SharedMemory** shm, base::WaitableEvent* waiter);
« no previous file with comments | « no previous file | content/renderer/media/renderer_gpu_video_decoder_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698