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

Unified Diff: content/renderer/media/android/stream_texture_factory_impl.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/media/android/stream_texture_factory_impl.cc
diff --git a/content/renderer/media/android/stream_texture_factory_impl.cc b/content/renderer/media/android/stream_texture_factory_impl.cc
index e6d6f40909172d7f2e581efce06148e3faddafc4..01b1482ff61bd473a1f458c0162ea33f9b10d32c 100644
--- a/content/renderer/media/android/stream_texture_factory_impl.cc
+++ b/content/renderer/media/android/stream_texture_factory_impl.cc
@@ -31,6 +31,7 @@
// StreamTextureHost::Listener implementation:
void OnFrameAvailable() override;
+ void OnMatrixChanged(const float matrix[16]) override;
private:
void BindOnThread(int32_t stream_id);
@@ -101,6 +102,12 @@
client_->DidReceiveFrame();
}
+void StreamTextureProxyImpl::OnMatrixChanged(const float matrix[16]) {
+ base::AutoLock lock(lock_);
+ if (client_)
+ client_->DidUpdateMatrix(matrix);
+}
+
} // namespace
// static

Powered by Google App Engine
This is Rietveld 408576698