| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_; |
| 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_ |
| OLD | NEW |