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

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

Issue 12596015: cc: Keep a reference on the media::VideoFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layers/video_frame_provider_client_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_VIDEO_LAYER_IMPL_H_
6 #define CC_LAYERS_VIDEO_LAYER_IMPL_H_ 6 #define CC_LAYERS_VIDEO_LAYER_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual const char* LayerTypeAsString() const OVERRIDE; 63 virtual const char* LayerTypeAsString() const OVERRIDE;
64 64
65 void WillDrawInternal(ResourceProvider* resource_provider); 65 void WillDrawInternal(ResourceProvider* resource_provider);
66 bool SetupFramePlanes(ResourceProvider* resource_provider); 66 bool SetupFramePlanes(ResourceProvider* resource_provider);
67 void FreeFramePlanes(ResourceProvider* resource_provider); 67 void FreeFramePlanes(ResourceProvider* resource_provider);
68 void FreeUnusedFramePlanes(ResourceProvider* resource_provider); 68 void FreeUnusedFramePlanes(ResourceProvider* resource_provider);
69 size_t NumPlanes() const; 69 size_t NumPlanes() const;
70 70
71 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_; 71 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_;
72 72
73 media::VideoFrame* frame_; 73 scoped_refptr<media::VideoFrame> frame_;
74 media::VideoFrame::Format format_; 74 media::VideoFrame::Format format_;
scherkus (not reviewing) 2013/03/21 20:29:56 perhaps something to tackle in a separate CL: it l
danakj 2013/03/21 20:31:20 Ya, there's some ongoing work by sheu@ to get rid
75 bool convert_yuv_; 75 bool convert_yuv_;
76 ResourceProvider::ResourceId external_texture_resource_; 76 ResourceProvider::ResourceId external_texture_resource_;
77 scoped_ptr<media::SkCanvasVideoRenderer> video_renderer_; 77 scoped_ptr<media::SkCanvasVideoRenderer> video_renderer_;
78 78
79 // Each index in this array corresponds to a plane in media::VideoFrame. 79 // Each index in this array corresponds to a plane in media::VideoFrame.
80 FramePlane frame_planes_[media::VideoFrame::kMaxPlanes]; 80 FramePlane frame_planes_[media::VideoFrame::kMaxPlanes];
81 81
82 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); 82 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl);
83 }; 83 };
84 84
85 } // namespace cc 85 } // namespace cc
86 86
87 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ 87 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/video_frame_provider_client_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698