| OLD | NEW |
| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 void WillDrawInternal(ResourceProvider* resource_provider); | 65 void WillDrawInternal(ResourceProvider* resource_provider); |
| 66 bool AllocatePlaneData(ResourceProvider* resource_provider); | 66 bool AllocatePlaneData(ResourceProvider* resource_provider); |
| 67 bool CopyPlaneData(ResourceProvider* resource_provider); | 67 bool CopyPlaneData(ResourceProvider* resource_provider); |
| 68 void FreePlaneData(ResourceProvider* resource_provider); | 68 void FreePlaneData(ResourceProvider* resource_provider); |
| 69 void FreeUnusedPlaneData(ResourceProvider* resource_provider); | 69 void FreeUnusedPlaneData(ResourceProvider* resource_provider); |
| 70 size_t NumPlanes() const; | 70 size_t NumPlanes() const; |
| 71 | 71 |
| 72 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_; | 72 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_; |
| 73 | 73 |
| 74 media::VideoFrame* frame_; | 74 scoped_refptr<media::VideoFrame> frame_; |
| 75 GLenum format_; | 75 GLenum format_; |
| 76 bool convert_yuv_; | 76 bool convert_yuv_; |
| 77 ResourceProvider::ResourceId external_texture_resource_; | 77 ResourceProvider::ResourceId external_texture_resource_; |
| 78 scoped_ptr<media::SkCanvasVideoRenderer> video_renderer_; | 78 scoped_ptr<media::SkCanvasVideoRenderer> video_renderer_; |
| 79 | 79 |
| 80 // Each index in this array corresponds to a plane in media::VideoFrame. | 80 // Each index in this array corresponds to a plane in media::VideoFrame. |
| 81 FramePlane frame_planes_[media::VideoFrame::kMaxPlanes]; | 81 FramePlane frame_planes_[media::VideoFrame::kMaxPlanes]; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); | 83 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace cc | 86 } // namespace cc |
| 87 | 87 |
| 88 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ | 88 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ |
| OLD | NEW |