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

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

Issue 214543011: Initialize cc::VideoFrameProviderClientImpl::active_video_layer_ to NULL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: EXPECT_EQ() Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 "cc/layers/video_frame_provider.h" 10 #include "cc/layers/video_frame_provider.h"
11 #include "ui/gfx/transform.h" 11 #include "ui/gfx/transform.h"
12 12
13 namespace media { class VideoFrame; } 13 namespace media { class VideoFrame; }
14 14
15 namespace cc { 15 namespace cc {
16 class VideoLayerImpl; 16 class VideoLayerImpl;
17 17
18 class VideoFrameProviderClientImpl 18 class VideoFrameProviderClientImpl
19 : public VideoFrameProvider::Client, 19 : public VideoFrameProvider::Client,
20 public base::RefCounted<VideoFrameProviderClientImpl> { 20 public base::RefCounted<VideoFrameProviderClientImpl> {
21 public: 21 public:
22 static scoped_refptr<VideoFrameProviderClientImpl> Create( 22 static scoped_refptr<VideoFrameProviderClientImpl> Create(
23 VideoFrameProvider* provider); 23 VideoFrameProvider* provider);
24 24
25 VideoLayerImpl* active_video_layer() { return active_video_layer_; }
25 void set_active_video_layer(VideoLayerImpl* video_layer) { 26 void set_active_video_layer(VideoLayerImpl* video_layer) {
26 active_video_layer_ = video_layer; 27 active_video_layer_ = video_layer;
27 } 28 }
28 29
29 void Stop(); 30 void Stop();
30 bool Stopped() const { return !provider_; } 31 bool Stopped() const { return !provider_; }
31 32
32 scoped_refptr<media::VideoFrame> AcquireLockAndCurrentFrame(); 33 scoped_refptr<media::VideoFrame> AcquireLockAndCurrentFrame();
33 void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame); 34 void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame);
34 void ReleaseLock(); 35 void ReleaseLock();
(...skipping 19 matching lines...) Expand all
54 VideoFrameProvider* provider_; 55 VideoFrameProvider* provider_;
55 56
56 gfx::Transform stream_texture_matrix_; 57 gfx::Transform stream_texture_matrix_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(VideoFrameProviderClientImpl); 59 DISALLOW_COPY_AND_ASSIGN(VideoFrameProviderClientImpl);
59 }; 60 };
60 61
61 } // namespace cc 62 } // namespace cc
62 63
63 #endif // CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_ 64 #endif // CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/video_frame_provider_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698