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

Unified Diff: cc/layers/video_frame_provider_client_impl.cc

Issue 1134663005: cc: Video layers without a frame should not occlude (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup test Created 5 years, 7 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 | « cc/layers/video_frame_provider_client_impl.h ('k') | cc/layers/video_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_frame_provider_client_impl.cc
diff --git a/cc/layers/video_frame_provider_client_impl.cc b/cc/layers/video_frame_provider_client_impl.cc
index 5fab4e2f04c4d0cc01dc081ccc59a0a86e79880a..8e85fa7d8b8cb9c2780253a8f902b94d31fb6792 100644
--- a/cc/layers/video_frame_provider_client_impl.cc
+++ b/cc/layers/video_frame_provider_client_impl.cc
@@ -98,6 +98,11 @@ void VideoFrameProviderClientImpl::ReleaseLock() {
provider_lock_.Release();
}
+bool VideoFrameProviderClientImpl::HasCurrentFrame() {
+ base::AutoLock locker(provider_lock_);
+ return provider_ && provider_->GetCurrentFrame();
danakj 2015/05/18 17:19:52 You need to match calls to GetCurrentFrame() with
hendrikw 2015/05/18 17:46:58 That's an weird requirement. WebMediaPlayerMS::Ge
+}
+
const gfx::Transform& VideoFrameProviderClientImpl::StreamTextureMatrix()
const {
DCHECK(thread_checker_.CalledOnValidThread());
« no previous file with comments | « cc/layers/video_frame_provider_client_impl.h ('k') | cc/layers/video_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698