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

Unified Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.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/client/gpu_video_decode_accelerator_host.h
diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.h b/content/common/gpu/client/gpu_video_decode_accelerator_host.h
index ed67571cefef474b0c980b85517d7a723dc8d646..704584dbfcad9bf8d0a3639e4e45e2c17fb83b31 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.h
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.h
@@ -12,6 +12,7 @@
#include "content/common/gpu/client/command_buffer_proxy_impl.h"
#include "ipc/ipc_listener.h"
#include "media/video/video_decode_accelerator.h"
+#include "ui/gfx/size.h"
namespace content {
class GpuChannelHost;
@@ -55,7 +56,7 @@ class GpuVideoDecodeAcceleratorHost
void OnBitstreamBufferProcessed(int32 bitstream_buffer_id);
void OnProvidePictureBuffer(uint32 num_requested_buffers,
- const gfx::Size& buffer_size,
+ const gfx::Size& dimensions,
uint32 texture_target);
void OnDismissPictureBuffer(int32 picture_buffer_id);
void OnPictureReady(int32 picture_buffer_id, int32 bitstream_buffer_id);
@@ -75,6 +76,9 @@ class GpuVideoDecodeAcceleratorHost
// Unowned reference to the CommandBufferProxyImpl that created us.
CommandBufferProxyImpl* impl_;
+ // Requested dimensions of the buffer, from ProvidePictureBuffers().
+ gfx::Size picture_buffer_dimensions_;
+
DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
};

Powered by Google App Engine
This is Rietveld 408576698