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

Unified Diff: content/renderer/gpu/stream_texture_host_android.cc

Issue 1848923003: Revert of Make Android StreamTexture implement GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/renderer/gpu/stream_texture_host_android.cc
diff --git a/content/renderer/gpu/stream_texture_host_android.cc b/content/renderer/gpu/stream_texture_host_android.cc
index d79b24723c66c93cff1c1f628ce74696413f28f1..8115d6325461797d40e2ffade1c99550595dc392 100644
--- a/content/renderer/gpu/stream_texture_host_android.cc
+++ b/content/renderer/gpu/stream_texture_host_android.cc
@@ -42,6 +42,8 @@
IPC_BEGIN_MESSAGE_MAP(StreamTextureHost, message)
IPC_MESSAGE_HANDLER(GpuStreamTextureMsg_FrameAvailable,
OnFrameAvailable);
+ IPC_MESSAGE_HANDLER(GpuStreamTextureMsg_MatrixChanged,
+ OnMatrixChanged);
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
DCHECK(handled);
@@ -56,4 +58,12 @@
listener_->OnFrameAvailable();
}
+void StreamTextureHost::OnMatrixChanged(
+ const GpuStreamTextureMsg_MatrixChanged_Params& params) {
+ static_assert(sizeof(params) == sizeof(float) * 16,
+ "bad GpuStreamTextureMsg MatrixChanged_Params format");
+ if (listener_)
+ listener_->OnMatrixChanged((const float*)&params);
+}
+
} // namespace content
« no previous file with comments | « content/renderer/gpu/stream_texture_host_android.h ('k') | content/renderer/media/android/stream_texture_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698