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

Side by Side Diff: cc/layers/video_frame_provider_client_impl.h

Issue 1134663005: cc: Video layers without a frame should not occlude (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed const on android 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 unified diff | Download patch
« no previous file with comments | « cc/layers/video_frame_provider.h ('k') | cc/layers/video_frame_provider_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_ 5 #ifndef CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_
6 #define CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_ 6 #define CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 24 matching lines...) Expand all
35 VideoLayerImpl* ActiveVideoLayer() const; 35 VideoLayerImpl* ActiveVideoLayer() const;
36 void SetActiveVideoLayer(VideoLayerImpl* video_layer); 36 void SetActiveVideoLayer(VideoLayerImpl* video_layer);
37 37
38 bool Stopped() const; 38 bool Stopped() const;
39 // Must be called on the impl thread while the main thread is blocked. 39 // Must be called on the impl thread while the main thread is blocked.
40 void Stop(); 40 void Stop();
41 41
42 scoped_refptr<media::VideoFrame> AcquireLockAndCurrentFrame(); 42 scoped_refptr<media::VideoFrame> AcquireLockAndCurrentFrame();
43 void PutCurrentFrame(); 43 void PutCurrentFrame();
44 void ReleaseLock(); 44 void ReleaseLock();
45 bool HasCurrentFrame();
45 46
46 const gfx::Transform& StreamTextureMatrix() const; 47 const gfx::Transform& StreamTextureMatrix() const;
47 48
48 // VideoFrameController implementation. 49 // VideoFrameController implementation.
49 void OnBeginFrame(const BeginFrameArgs& args) override; 50 void OnBeginFrame(const BeginFrameArgs& args) override;
50 51
51 // VideoFrameProvider::Client implementation. 52 // VideoFrameProvider::Client implementation.
52 // Called on the main thread. 53 // Called on the main thread.
53 void StopUsingProvider() override; 54 void StopUsingProvider() override;
54 // Called on the impl thread. 55 // Called on the impl thread.
(...skipping 23 matching lines...) Expand all
78 base::ThreadChecker thread_checker_; 79 base::ThreadChecker thread_checker_;
79 80
80 gfx::Transform stream_texture_matrix_; 81 gfx::Transform stream_texture_matrix_;
81 82
82 DISALLOW_COPY_AND_ASSIGN(VideoFrameProviderClientImpl); 83 DISALLOW_COPY_AND_ASSIGN(VideoFrameProviderClientImpl);
83 }; 84 };
84 85
85 } // namespace cc 86 } // namespace cc
86 87
87 #endif // CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_ 88 #endif // CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/video_frame_provider.h ('k') | cc/layers/video_frame_provider_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698