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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void DidBecomeActive() override; | 43 void DidBecomeActive() override; |
44 void ReleaseResources() override; | 44 void ReleaseResources() override; |
45 | 45 |
46 void SetNeedsRedraw(); | 46 void SetNeedsRedraw(); |
47 media::VideoRotation video_rotation() const { return video_rotation_; } | 47 media::VideoRotation video_rotation() const { return video_rotation_; } |
48 | 48 |
49 private: | 49 private: |
50 VideoLayerImpl( | 50 VideoLayerImpl( |
51 LayerTreeImpl* tree_impl, | 51 LayerTreeImpl* tree_impl, |
52 int id, | 52 int id, |
53 const scoped_refptr<VideoFrameProviderClientImpl>& provider_client_impl, | 53 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl, |
54 media::VideoRotation video_rotation); | 54 media::VideoRotation video_rotation); |
55 | 55 |
56 const char* LayerTypeAsString() const override; | 56 const char* LayerTypeAsString() const override; |
57 | 57 |
58 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_; | 58 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_; |
59 | 59 |
60 scoped_refptr<media::VideoFrame> frame_; | 60 scoped_refptr<media::VideoFrame> frame_; |
61 | 61 |
62 media::VideoRotation video_rotation_; | 62 media::VideoRotation video_rotation_; |
63 | 63 |
(...skipping 20 matching lines...) Expand all Loading... |
84 std::vector<unsigned> software_resources_; | 84 std::vector<unsigned> software_resources_; |
85 // Called once for each software resource. | 85 // Called once for each software resource. |
86 ReleaseCallbackImpl software_release_callback_; | 86 ReleaseCallbackImpl software_release_callback_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); | 88 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace cc | 91 } // namespace cc |
92 | 92 |
93 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ | 93 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ |
OLD | NEW |