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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 24152009: Allow rendering from non-stream GL_TEXTURE_EXTERNAL_OES (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@git-svn
Patch Set: eead63fe Rebase. Created 7 years, 3 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: content/common/gpu/media/gpu_video_decode_accelerator.h
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.h b/content/common/gpu/media/gpu_video_decode_accelerator.h
index 77946bc59a2083aac7ef4f4956716fd24d6f74f2..e085c537232496a3273d193583f9f50992056e0e 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.h
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.h
@@ -15,6 +15,7 @@
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "media/video/video_decode_accelerator.h"
+#include "ui/gfx/size.h"
namespace base {
class MessageLoopProxy;
@@ -70,12 +71,9 @@ class GpuVideoDecodeAccelerator
// Handlers for IPC messages.
void OnDecode(base::SharedMemoryHandle handle, int32 id, uint32 size);
- void OnAssignPictureBuffers(
- const std::vector<int32>& buffer_ids,
- const std::vector<uint32>& texture_ids,
- const std::vector<gfx::Size>& sizes);
- void OnReusePictureBuffer(
- int32 picture_buffer_id);
+ void OnAssignPictureBuffers(const std::vector<int32>& buffer_ids,
+ const std::vector<uint32>& texture_ids);
+ void OnReusePictureBuffer(int32 picture_buffer_id);
void OnFlush();
void OnReset();
void OnDestroy();
@@ -101,6 +99,9 @@ class GpuVideoDecodeAccelerator
// Returns false if failed.
base::Callback<bool(void)> make_context_current_;
+ // The texture dimensions as requested by ProvidePictureBuffers().
+ gfx::Size texture_dimensions_;
+
// The texture target as requested by ProvidePictureBuffers().
uint32 texture_target_;

Powered by Google App Engine
This is Rietveld 408576698